aboutsummaryrefslogtreecommitdiff
path: root/rpkid/testpoke.py
diff options
context:
space:
mode:
Diffstat (limited to 'rpkid/testpoke.py')
-rw-r--r--rpkid/testpoke.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/rpkid/testpoke.py b/rpkid/testpoke.py
index 00f3bab8..04517ce4 100644
--- a/rpkid/testpoke.py
+++ b/rpkid/testpoke.py
@@ -138,4 +138,10 @@ https_cert = get_PEM("ssl-cert", rpki.x509.X509)
https_certs = get_PEM_chain("ssl-cert-chain", https_cert)
https_ca_certs = get_PEM_chain("ssl-ca-certs")
-dispatch[yaml_req["type"]]()
+if debug:
+ dispatch[yaml_req["type"]]()
+else:
+ try:
+ dispatch[yaml_req["type"]]()
+ except Exception, edata:
+ print "Failed:", edata