mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-28 15:36:13 +01:00
fix KeyError exception when a status is missing in the result
This commit is contained in:
parent
f041ee43ba
commit
25ab4d7af6
@ -2516,6 +2516,7 @@ def get_prj_results(apiurl, prj, show_legend=False, csv=False):
|
|||||||
if not status.has_key(pac) or not status[pac].has_key(tg):
|
if not status.has_key(pac) or not status[pac].has_key(tg):
|
||||||
# for newly added packages, status may be missing
|
# for newly added packages, status may be missing
|
||||||
st = '?'
|
st = '?'
|
||||||
|
else:
|
||||||
try:
|
try:
|
||||||
st = buildstatus_symbols[status[pac][tg]]
|
st = buildstatus_symbols[status[pac][tg]]
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user