add launchpadlib timeout

er had hung in the gate on a launchpad network issue. Set the
timeout for launchpadlib in an attempt to prevent this in the
future.

Change-Id: Ib3585f0a2b502e306c42711815c40d17fd6520a9
This commit is contained in:
Sean Dague
2014-04-22 15:00:02 -04:00
parent 9cee2939ff
commit 06d7121945

View File

@@ -117,7 +117,8 @@ class RecheckWatch(threading.Thread):
self.key = key
self.lp = launchpad.Launchpad.login_anonymously('grabbing bugs',
'production',
LPCACHEDIR)
LPCACHEDIR,
timeout=60)
def display(self, channel, event):
display = False