From 66445ed4ac325b63a6f8b1138d02ffb4d6314b3b Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Tue, 23 Oct 2007 07:20:27 +0000 Subject: Insomnia svn path=/scripts/Makefile; revision=1188 --- scripts/rpkid.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts/rpkid.py') diff --git a/scripts/rpkid.py b/scripts/rpkid.py index 5148167a..6e2cde17 100755 --- a/scripts/rpkid.py +++ b/scripts/rpkid.py @@ -37,10 +37,12 @@ def up_down_handler(query, path): return 200, child.serve_up_down(gctx, query) except Exception, data: traceback.print_exc() - return 500, "Unhandled exception %s" % data + return 400, "Could not process PDU: %s" % data def cronjob_handler(query, path): - raise rpki.exceptions.NotImplementedYet + for s in rpki.left_right.self_elt.sql_fetch_all(gctx): + s.client_poll(gctx) + #raise rpki.exceptions.NotImplementedYet class global_context(object): """A place to stash various global parameters.""" -- cgit v1.2.3