summaryrefslogtreecommitdiff
path: root/tools/certtools.py
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-02-08 01:53:40 +0100
committerLinus Nordberg <linus@nordberg.se>2015-02-20 14:12:47 +0100
commitb24f6ae5a129b5f0cbbffcf07b5482eda8a3eef2 (patch)
tree3ff6994611f178436ad86b3fc20a09a9468d5cd3 /tools/certtools.py
parent5f16e0b43df17d556905e0885abed28cef8b8e29 (diff)
Wait after first submission. Continue on http error 400. Print submission rate and number of submissions every 1000 submissions.
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 ===="