X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Ftrust%2Fspeaksfor_util.py;h=20819c9055dad5d837499a69b28b6537ab7db2b2;hb=a0ef6e7c91c3c8fa376943d28fec8c5c204a78cd;hp=9bad61db6c1b48de1c70e4745a1124440b1f297d;hpb=5751be639a614b656c902d0aca51af7ae29d20a8;p=sfa.git diff --git a/sfa/trust/speaksfor_util.py b/sfa/trust/speaksfor_util.py index 9bad61db..20819c90 100644 --- a/sfa/trust/speaksfor_util.py +++ b/sfa/trust/speaksfor_util.py @@ -211,14 +211,14 @@ def verify_speaks_for(cred, tool_gid, speaking_for_urn, # User certificate must validate against trusted roots try: user_gid.verify_chain(trusted_roots) - except Exception, e: + except Exception as e: return False, None, \ "Cred signer (user) cert not trusted: %s" % e # Tool certificate must validate against trusted roots try: tool_gid.verify_chain(trusted_roots) - except Exception, e: + except Exception as e: return False, None, \ "Tool cert not trusted: %s" % e