Skip to content

Commit

Permalink
Better check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mytherin authored Jun 13, 2024
1 parent b65f981 commit 2b4c26b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
if len(desc_files) != 1:
raise ValueError('cannot have multiple descriptors changed or packages with spaces in their names')
desc_file = desc_files[0]
if len(desc_file) == 0:
raise ValueError('description file not found (ALL_CHANGED_FILES was set but empty)')

with open(desc_file, 'r') as stream:
desc = yaml.safe_load(stream)
Expand Down

0 comments on commit 2b4c26b

Please sign in to comment.