From 08fc7062caba3991f33ba0dff4f40c3371d8153f Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 31 Mar 2016 09:27:01 +0200 Subject: [PATCH] a lingering raise --- sfa/trust/certificate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.43.0