1
0
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:
Ludwig Nussel 2010-05-03 10:53:12 +02:00
parent 9e9acd9afa
commit ad238df8bd

View File

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