diff options
author | Jakub Warmuz <jakub@warmuz.org> | 2015-03-24 21:55:32 +0300 |
---|---|---|
committer | Jakub Warmuz <jakub@warmuz.org> | 2015-03-24 21:55:32 +0300 |
commit | 3dcf81dbb65d8d2c377f30aa983540d5134450a4 (patch) | |
tree | d70093fd84bcb9ec9ce85ba489c51f0af22b10f7 /examples | |
parent | d9176d426727e6c2fc79fd843a7a3377473ae5e2 (diff) |
network2: Improve error handling
Diffstat (limited to 'examples')
-rw-r--r-- | examples/restified.py | 5 |
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 |