a lingering raise
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 31 Mar 2016 07:27:01 +0000 (09:27 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 31 Mar 2016 07:27:01 +0000 (09:27 +0200)
sfa/trust/certificate.py

index 6f3ecc6..494b977 100644 (file)
@@ -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)