mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-14 01:26:23 +01:00
build result may have no status
This commit is contained in:
parent
9e9acd9afa
commit
ad238df8bd
@ -3540,9 +3540,12 @@ def get_package_results(apiurl, prj, package, lastbuild=None, repository=[], arc
|
||||
rmap['state'] = node.get('state')
|
||||
rmap['dirty'] = node.get('dirty')
|
||||
|
||||
statusnode = node.find('status')
|
||||
rmap['code'] = statusnode.get('code', '')
|
||||
rmap['details'] = ''
|
||||
statusnode = node.find('status')
|
||||
if statusnode != None:
|
||||
rmap['code'] = statusnode.get('code', '')
|
||||
else:
|
||||
rmap['code'] = ''
|
||||
|
||||
if rmap['code'] in ('unresolvable', 'expansion error', 'broken', 'blocked', 'finished'):
|
||||
details = statusnode.find('details')
|
||||
|
Loading…
Reference in New Issue
Block a user