[Collab-qa-commits] r2050 - udd/udd
Lucas Nussbaum
lucas at alioth.debian.org
Mon Oct 17 07:50:48 UTC 2011
Author: lucas
Date: 2011-10-17 07:50:48 +0000 (Mon, 17 Oct 2011)
New Revision: 2050
Modified:
udd/udd/ubuntu_bugs_gatherer.py
Log:
retry when launchpad returns error
Modified: udd/udd/ubuntu_bugs_gatherer.py
===================================================================
--- udd/udd/ubuntu_bugs_gatherer.py 2011-10-17 07:49:04 UTC (rev 2049)
+++ udd/udd/ubuntu_bugs_gatherer.py 2011-10-17 07:50:48 UTC (rev 2050)
@@ -119,11 +119,9 @@
hq.put(b)
else:
print "[", currentThread().getName(), "] Bug ", b, ": Wrong status: ", r.status, " ", r.reason
- if r.status == 302:
- print "Exiting."
- _exit(1)
ok = False
- hq.put(b)
+ if r.status != 302:
+ hq.put(b)
except httplib.BadStatusLine, line:
print "[", currentThread().getName(), "] Bug ", b, ": BadStatusLine: ", line
print str(r.getheaders())
More information about the Collab-qa-commits
mailing list