summaryrefslogtreecommitdiff
path: root/tools/certtools.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/certtools.py')
-rw-r--r--tools/certtools.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/certtools.py b/tools/certtools.py
index af94fb8..e1ca57a 100644
--- a/tools/certtools.py
+++ b/tools/certtools.py
@@ -117,7 +117,9 @@ def add_chain(baseurl, submission):
json.dumps(submission)).read()
return json.loads(result)
except urllib2.HTTPError, e:
- print "ERROR:", e.read()
+ print "ERROR", e.code,":", e.read()
+ if e.code == 400:
+ return None
sys.exit(1)
except ValueError, e:
print "==== FAILED REQUEST ===="