diff options
author | Rob Austein <sra@hactrn.net> | 2009-05-10 20:51:21 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2009-05-10 20:51:21 +0000 |
commit | 3031f6ecc8ee5a3e137f835ea5e7f6d40ce99f34 (patch) | |
tree | e68e393c6087d2a524a07988b01e839952ef0d4b /rpkid/testpoke.py | |
parent | 18b0cb5714699d1069e0458410af92a39dbdfe8b (diff) |
Lint
svn path=/rpkid/irbe_cli.py; revision=2419
Diffstat (limited to 'rpkid/testpoke.py')
-rw-r--r-- | rpkid/testpoke.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/rpkid/testpoke.py b/rpkid/testpoke.py index f28dc9b2..f07135a6 100644 --- a/rpkid/testpoke.py +++ b/rpkid/testpoke.py @@ -103,18 +103,22 @@ def query_up_down(q_pdu): try: r_msg.payload.check_response() except Exception, edata: - if debug: - raise - print "Failed:", edata + fail(edata) rpki.async.exit_event_loop() + def fail(e): + if debug: + raise e + print "Failed:", e + rpki.https.client( server_ta = [https_ta] + https_ca_certs, client_key = https_key, client_cert = https_certs, msg = q_cms, url = yaml_data["posturl"], - callback = done) + callback = done, + errback = fail) def do_list(): query_up_down(rpki.up_down.list_pdu()) |