From b24f6ae5a129b5f0cbbffcf07b5482eda8a3eef2 Mon Sep 17 00:00:00 2001 From: Magnus Ahltorp Date: Sun, 8 Feb 2015 01:53:40 +0100 Subject: Wait after first submission. Continue on http error 400. Print submission rate and number of submissions every 1000 submissions. --- tools/certtools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/certtools.py') 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 ====" -- cgit v1.1