From 7476eb0d57f54eea047c2b9526e88753527bd0fa Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 29 Apr 2009 00:03:51 +0000 Subject: First pass with pylint svn path=/rpkid/Makefile; revision=2371 --- rpkid/irdbd.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'rpkid/irdbd.py') diff --git a/rpkid/irdbd.py b/rpkid/irdbd.py index 8d7c7c2b..46669049 100755 --- a/rpkid/irdbd.py +++ b/rpkid/irdbd.py @@ -22,8 +22,7 @@ OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. """ -import sys, os, time, getopt, urlparse, traceback -import tlslite.api, MySQLdb, lxml.etree +import sys, os, time, getopt, urlparse, traceback, MySQLdb import rpki.https, rpki.config, rpki.resource_set, rpki.relaxng import rpki.exceptions, rpki.left_right, rpki.log, rpki.x509 @@ -72,7 +71,7 @@ def handler(query, path, cb): r_msg.append(r_pdu) - return 200, rpki.left_right.cms_msg.wrap(r_msg, irdbd_key, irdbd_cert) + cb(200, rpki.left_right.cms_msg.wrap(r_msg, irdbd_key, irdbd_cert)) except Exception, data: rpki.log.error(traceback.format_exc()) @@ -80,7 +79,7 @@ def handler(query, path, cb): # We only get here in cases where we couldn't or wouldn't generate # , so just return HTTP failure. - return 500, "Unhandled exception %s: %s" % (data.__class__.__name__, data) + cb(500, "Unhandled exception %s: %s" % (data.__class__.__name__, data)) os.environ["TZ"] = "UTC" time.tzset() -- cgit v1.2.3