1
0
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:
Marcus Huewe 2016-09-09 16:24:26 +02:00
parent d60a8601d9
commit 07e0628d9e

View File

@ -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