mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 01:16:14 +01:00
- handle also gateway timeout error code when watching build results
This commit is contained in:
parent
e89bc8197b
commit
ad9a32ca8f
@ -5023,10 +5023,10 @@ def get_results(apiurl, prj, package, lastbuild=None, repository=[], arch=[], ve
|
||||
results = get_package_results(apiurl, prj, package, lastbuild, repository, arch, oldstate)
|
||||
except HTTPError as e:
|
||||
# check for simple timeout error and fetch again
|
||||
if e.code != 502:
|
||||
raise
|
||||
if e.code == 502 or e.code == 504:
|
||||
# re-try result request
|
||||
continue
|
||||
raise
|
||||
|
||||
for res in results:
|
||||
if '_oldstate' in res:
|
||||
|
Loading…
Reference in New Issue
Block a user