mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-23 00:25:18 +00:00
py3k: Use compatible exception syntax
This commit is contained in:
parent
3b6c79a296
commit
97b889f5b7
@ -85,7 +85,7 @@ class RequestListResource(object):
|
||||
|
||||
try:
|
||||
renewal_signature = b64decode(renewal_header)
|
||||
except TypeError, ValueError:
|
||||
except (TypeError, ValueError):
|
||||
logger.error(u"Renewal failed, bad signature supplied for %s", common_name)
|
||||
reasons.append("Renewal failed, bad signature supplied")
|
||||
else:
|
||||
|
@ -139,7 +139,7 @@ class SCEPResource(object):
|
||||
signed_certificate = asymmetric.load_certificate(buf)
|
||||
content = signed_certificate.asn1.dump()
|
||||
|
||||
except SCEPError, e:
|
||||
except SCEPError as e:
|
||||
attr_list.append(cms.CMSAttribute({
|
||||
'type': u"fail_info",
|
||||
'values': ["%d" % e.code]
|
||||
|
Loading…
Reference in New Issue
Block a user