Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Warmuz <jakub@warmuz.org>2015-03-24 21:55:32 +0300
committerJakub Warmuz <jakub@warmuz.org>2015-03-24 21:55:32 +0300
commit3dcf81dbb65d8d2c377f30aa983540d5134450a4 (patch)
treed70093fd84bcb9ec9ce85ba489c51f0af22b10f7 /examples
parentd9176d426727e6c2fc79fd843a7a3377473ae5e2 (diff)
network2: Improve error handling
Diffstat (limited to 'examples')
-rw-r--r--examples/restified.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/restified.py b/examples/restified.py
index 1428c96cc..99d07a067 100644
--- a/examples/restified.py
+++ b/examples/restified.py
@@ -34,4 +34,7 @@ logging.debug(authzr)
csr = M2Crypto.X509.load_request_string(pkg_resources.resource_string(
'letsencrypt.client.tests', os.path.join('testdata', 'csr.pem')))
-net.request_issuance(csr, (authzr,))
+try:
+ net.request_issuance(csr, (authzr,))
+except messages2.Error as error:
+ print error.detail