Fix status generation when no releases are available
This fixes: File "rpm-packaging-status.py", line 153, in find_highest_release_version return max(releases, key=lambda x: version.parse(str(x['version']))) ValueError: max() arg is an empty sequence Change-Id: Ide1068e1b0614b099cd4fa88dad1e5581884bf9a
This commit is contained in:
parent
f4b0814a30
commit
7379ed6f79
|
@ -65,7 +65,7 @@ def _process_status(args=None):
|
|||
continue
|
||||
with open(yaml_file) as f:
|
||||
data = yaml.load(f.read())
|
||||
if 'releases' not in data:
|
||||
if 'releases' not in data or not data['releases']:
|
||||
# there might be yaml files without any releases
|
||||
continue
|
||||
v_release = find_highest_release_version(data['releases'])
|
||||
|
|
Loading…
Reference in New Issue