summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pyfedpkg/__init__.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index d0d9139..acf9eeb 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -675,7 +675,10 @@ class Lookaside(object):
curl.setopt(pycurl.WRITEFUNCTION, buf.write)
curl.setopt(pycurl.HTTPPOST, post_data)
- curl.perform()
+ try:
+ curl.perform()
+ except:
+ raise FedpkgError('Lookaside failure. Check your cert.')
curl.close()
output = buf.getvalue().strip()
@@ -707,7 +710,10 @@ class Lookaside(object):
# TODO: disabled until safe way to test is known. Watchout for the
# file parameter:
- curl.perform()
+ try:
+ curl.perform()
+ except:
+ raise FedpkgError('Lookaside failure. Check your cert.')
curl.close()