From 07a045d1259f30878abba416b86373c05c929965 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 29 May 2014 19:33:43 +0000 Subject: Python style police: instantiate exceptions before raising them (convert two-expression form of "raise" to one-expression form). svn path=/trunk/; revision=5844 --- rpki/pubd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rpki/pubd.py') 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 -- cgit v1.2.3