[Collab-qa-commits] r1493 - udd/udd

Lucas Nussbaum lucas at alioth.debian.org
Fri Jun 19 11:25:21 UTC 2009


Author: lucas
Date: 2009-06-19 11:25:20 +0000 (Fri, 19 Jun 2009)
New Revision: 1493

Modified:
   udd/udd/ubuntu_bugs_gatherer.py
Log:
switch to using the production launchpad

Modified: udd/udd/ubuntu_bugs_gatherer.py
===================================================================
--- udd/udd/ubuntu_bugs_gatherer.py	2009-06-19 11:24:48 UTC (rev 1492)
+++ udd/udd/ubuntu_bugs_gatherer.py	2009-06-19 11:25:20 UTC (rev 1493)
@@ -100,7 +100,7 @@
           exit(1)
 
         try:
-          conn.request('GET', 'https://edge.launchpad.net/bugs/' + str(b) + '/+text')
+          conn.request('GET', 'https://launchpad.net/bugs/' + str(b) + '/+text')
           r = conn.getresponse()
           if r.status == 200:
             data = r.read()
@@ -112,6 +112,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)
         except httplib.BadStatusLine, line:




More information about the Collab-qa-commits mailing list