mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-11 10:31:30 +00:00
policies/sourceppa.py: Bump Launchpad timeout
Let's see if that helps with the timeouts we get during britney runs.
This commit is contained in:
parent
11705f4a7b
commit
efd8794804
@ -22,7 +22,7 @@ def query_lp_rest_api(obj, query):
|
|||||||
transient failures connecting to launchpad.
|
transient failures connecting to launchpad.
|
||||||
"""
|
"""
|
||||||
url = '%s%s?%s' % (LAUNCHPAD_URL, obj, urllib.parse.urlencode(query))
|
url = '%s%s?%s' % (LAUNCHPAD_URL, obj, urllib.parse.urlencode(query))
|
||||||
with urllib.request.urlopen(url, timeout=10) as req:
|
with urllib.request.urlopen(url, timeout=30) as req:
|
||||||
code = req.getcode()
|
code = req.getcode()
|
||||||
if 200 <= code < 300:
|
if 200 <= code < 300:
|
||||||
return json.loads(req.read().decode('UTF-8'))
|
return json.loads(req.read().decode('UTF-8'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user