aboutsummaryrefslogtreecommitdiff
path: root/rpki/pubd.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-05-29 19:33:43 +0000
committerRob Austein <sra@hactrn.net>2014-05-29 19:33:43 +0000
commit07a045d1259f30878abba416b86373c05c929965 (patch)
tree9b8e4fe0038e4891e3b262168dce5ecfdccc36f7 /rpki/pubd.py
parente6047c9f737275d898d88737719dd09a6ee4f25c (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 'rpki/pubd.py')
-rw-r--r--rpki/pubd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpki/pubd.py b/rpki/pubd.py
index e3498a27..8e45aff7 100644
--- a/rpki/pubd.py
+++ b/rpki/pubd.py
@@ -158,11 +158,11 @@ class main(object):
try:
match = self.client_url_regexp.search(path)
if match is None:
- raise rpki.exceptions.BadContactURL, "Bad path: %s" % path
+ raise rpki.exceptions.BadContactURL("Bad path: %s" % path)
client_handle = match.group(1)
client = rpki.publication.client_elt.sql_fetch_where1(self, "client_handle = %s", (client_handle,))
if client is None:
- raise rpki.exceptions.ClientNotFound, "Could not find client %s" % client_handle
+ raise rpki.exceptions.ClientNotFound("Could not find client %s" % client_handle)
config = rpki.publication.config_elt.fetch(self)
if config is None or config.bpki_crl is None:
raise rpki.exceptions.CMSCRLNotSet