1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-24 17:16:12 +01:00

- handle also gateway timeout error code when watching build results

This commit is contained in:
Adrian Schröter 2013-10-22 17:49:51 +02:00
parent e89bc8197b
commit ad9a32ca8f

View File

@ -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
# re-try result request
continue
if e.code == 502 or e.code == 504:
# re-try result request
continue
raise
for res in results:
if '_oldstate' in res: