mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36: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
|
||||
else:
|
||||
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
|
||||
break
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user