aboutsummaryrefslogtreecommitdiff
path: root/rpkid/tests/testpoke.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2011-10-05 16:30:24 +0000
committerRob Austein <sra@hactrn.net>2011-10-05 16:30:24 +0000
commit72e42a6508ff19a315a0257dda4a710bc195dffa (patch)
tree34785d51be76bdb31b72784dd527125145b1ebc9 /rpkid/tests/testpoke.py
parent03d8dcaf85e21fe621f020c4fb34fdecb6ac4cca (diff)
Add global traceback control; this closes #95. Clean up some
"except:" clauses that should have been "except Exception:". svn path=/rpkid/rpki-sql-setup.py; revision=4014
Diffstat (limited to 'rpkid/tests/testpoke.py')
-rw-r--r--rpkid/tests/testpoke.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/rpkid/tests/testpoke.py b/rpkid/tests/testpoke.py
index 0e9c06cd..26cd29aa 100644
--- a/rpkid/tests/testpoke.py
+++ b/rpkid/tests/testpoke.py
@@ -12,7 +12,7 @@ Default configuration file is testpoke.yaml, override with --yaml option.
$Id$
-Copyright (C) 2010 Internet Systems Consortium ("ISC")
+Copyright (C) 2010--2011 Internet Systems Consortium ("ISC")
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -151,8 +151,7 @@ def do_revoke():
dispatch = { "list" : do_list, "issue" : do_issue, "revoke" : do_revoke }
def fail(e):
- if debug:
- rpki.log.traceback()
+ rpki.log.traceback(debug)
sys.exit("Testpoke failed: %s" % e)
cms_ta = get_PEM("cms-ca-cert", rpki.x509.X509)