mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
handle empty prjresults (e.g. when no repositories are defined)
This commit is contained in:
parent
d5ba95193b
commit
f3e5333267
@ -1315,6 +1315,8 @@ def get_prj_results(apiurl, prj, show_legend=False):
|
||||
root = tree.getroot()
|
||||
|
||||
pacs = []
|
||||
if not root.find('result'):
|
||||
return []
|
||||
for node in root.find('result'):
|
||||
pacs.append(node.get('package'))
|
||||
pacs.sort()
|
||||
|
Loading…
Reference in New Issue
Block a user