[httpupload] Catch URLError error message

This commit is contained in:
Philipp Hörist
2017-03-20 17:36:53 +01:00
parent 26f393e8a2
commit 65e2f437a5

View File

@@ -306,6 +306,9 @@ class Base(object):
error_msg = exc.reason.reason
if error_msg == 'CERTIFICATE_VERIFY_FAILED':
log.exception('Certificate verify failed')
else:
log.exception('URLError')
error_msg = exc.reason
except Exception as exc:
log.exception("Exception during upload")
error_msg = exc