diff options
author | Rob Austein <sra@hactrn.net> | 2014-05-29 19:33:43 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2014-05-29 19:33:43 +0000 |
commit | 07a045d1259f30878abba416b86373c05c929965 (patch) | |
tree | 9b8e4fe0038e4891e3b262168dce5ecfdccc36f7 /ca/tests | |
parent | e6047c9f737275d898d88737719dd09a6ee4f25c (diff) |
Python style police: instantiate exceptions before raising them
(convert two-expression form of "raise" to one-expression form).
svn path=/trunk/; revision=5844
Diffstat (limited to 'ca/tests')
-rw-r--r-- | ca/tests/smoketest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ca/tests/smoketest.py b/ca/tests/smoketest.py index 1f0215f2..bc73f1a5 100644 --- a/ca/tests/smoketest.py +++ b/ca/tests/smoketest.py @@ -1058,7 +1058,7 @@ class allocation(object): signed = signer.communicate(input = b.pkcs10_request.get_PEM()) if not signed[0]: logger.warning(signed[1]) - raise CouldntIssueBSCEECertificate, "Couldn't issue BSC EE certificate" + raise CouldntIssueBSCEECertificate("Couldn't issue BSC EE certificate") s.bsc_ee = rpki.x509.X509(PEM = signed[0]) s.bsc_crl = rpki.x509.CRL(PEM_file = s.name + "-SELF.crl") logger.info("BSC EE cert for %s SKI %s" % (s.name, s.bsc_ee.hSKI())) |