From: Thierry Parmentelat Date: Thu, 31 Mar 2016 07:27:01 +0000 (+0200) Subject: a lingering raise X-Git-Tag: sfa-3.1-21~31 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=08fc7062caba3991f33ba0dff4f40c3371d8153f a lingering raise --- diff --git a/sfa/trust/certificate.py b/sfa/trust/certificate.py index 6f3ecc62..494b9770 100644 --- a/sfa/trust/certificate.py +++ b/sfa/trust/certificate.py @@ -642,7 +642,7 @@ class Certificate: # pyOpenSSL only allows us to add extensions, so if we try to set the # same extension more than once, it will not work if self.data.has_key(field): - raise "Cannot set ", field, " more than once" + raise Exception("Cannot set {} more than once".format(field)) self.data[field] = str self.add_extension(field, 0, str)