diff options
author | Magnus Ahltorp <map@kth.se> | 2015-02-08 01:53:40 +0100 |
---|---|---|
committer | Magnus Ahltorp <map@kth.se> | 2015-02-08 01:53:40 +0100 |
commit | 3f05435af9b77406d1b8a97359a4b3ec1d41ea55 (patch) | |
tree | 3ad8f3e46deb276bb3205ae6adf3dd84e42dfd0f /tools/certtools.py | |
parent | 80c67e6b663a42a2fea866cd677d7088a25adfd3 (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 ====" |