diff options
author | Magnus Ahltorp <map@kth.se> | 2015-02-08 01:53:40 +0100 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2015-02-19 13:26:49 +0100 |
commit | d412c2d31c17ffd11d653899e2d64ae4059bb6aa (patch) | |
tree | 3ad8f3e46deb276bb3205ae6adf3dd84e42dfd0f /tools/certtools.py | |
parent | 1b8b22c59af8b0b9bdb282a6bc3949dfc853a2d1 (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.py | 4 |
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 ====" |