Merge lp:~pendulum/summit/665589-launchpad-request-retries into lp:summit
Proposed by
Penelope Stowe
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Nigel Babu | ||||
Approved revision: | 120 | ||||
Merged at revision: | 119 | ||||
Proposed branch: | lp:~pendulum/summit/665589-launchpad-request-retries | ||||
Merge into: | lp:summit | ||||
Diff against target: |
34 lines (+16/-1) 1 file modified
summit/schedule/models/summitmodel.py (+16/-1) |
||||
To merge this branch: | bzr merge lp:~pendulum/summit/665589-launchpad-request-retries | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Westby (community) | Approve | ||
Nigel Babu (community) | Approve | ||
Review via email: mp+63845@code.launchpad.net |
Commit message
try-catching the launchpad requests with 5 retries
Description of the change
try-catching the launchpad requests with 5 retries
To post a comment you must log in.
Hi Penelope,
Thanks for the branch, it will be a useful feature.
18 + trycounter = 0
19 + retrytotal = 5
The trycounter line needs an extra space at the front to line up.
26 + print "Error while calling the launchpad API"
It would be useful to see the error that came back from launchpad here
when debugging. You can do this by changing
23 + except urllib2.HTTPError:
to be
23 + except urllib2.HTTPError, e:
and then putting "+ str(e)" at the end of the print line, adjusting the current
error message to have ": " at the end to stop the two parts running in to each
other.
Thanks,
James