mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-07 13:48:43 +02:00
get_package_results: added None check
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user