Skip to content

Commit e4c762b

Browse files
move unreachable exception
1 parent cfbfe75 commit e4c762b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tasks/libs/releasing/version.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,11 @@ def get_version_numeric_only(ctx, major_version='7'):
374374
def load_dependencies(_):
375375
with open("release.json") as f:
376376
versions = json.load(f)
377+
if RELEASE_JSON_DEPENDENCIES not in versions:
378+
raise Exception(f"Could not find '{RELEASE_JSON_DEPENDENCIES}' in release.json")
377379
# windows runners don't accepts anything else than strings in the
378380
# environment when running a subprocess.
379381
return {str(k): str(v) for k, v in versions[RELEASE_JSON_DEPENDENCIES].items()}
380-
raise Exception(f"Could not find '{RELEASE_JSON_DEPENDENCIES}' in release.json")
381382

382383

383384
def create_version_json(ctx, git_sha_length=7):

0 commit comments

Comments
 (0)