From dac77ff21f4ff76d88cdd25d97e392ac9447e291 Mon Sep 17 00:00:00 2001 From: Pierlou Date: Mon, 11 Mar 2024 13:30:10 +0100 Subject: [PATCH] fix: add failsafe --- .github/workflows/assert_version.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/assert_version.py b/.github/workflows/assert_version.py index 442d051..9ae6bfd 100755 --- a/.github/workflows/assert_version.py +++ b/.github/workflows/assert_version.py @@ -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)