mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 01:46:13 +01:00
get_package_results: added None check
This commit is contained in:
parent
d60a8601d9
commit
07e0628d9e
@ -5538,7 +5538,7 @@ def get_package_results(apiurl, project, package, wait=False, *args, **kwargs):
|
|||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
pkg = result.find('status')
|
pkg = result.find('status')
|
||||||
if pkg.get('code') in waiting_states:
|
if pkg is not None and pkg.get('code') in waiting_states:
|
||||||
waiting = True
|
waiting = True
|
||||||
break
|
break
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user