Skip to content

Commit

Permalink
fix: add failsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierlou committed Mar 11, 2024
1 parent 7712f7f commit dac77ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/assert_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ def check(obj, version, parents=''):
for r in datapackage['resources']:
to_check.append(r['schema'])

else:
raise Exception('No required file found')

for schema_path in to_check:
with open(schema_path, 'r') as f:
schema = json.load(f)
Expand Down

0 comments on commit dac77ff

Please sign in to comment.