Skip to content

Commit 9371dd2

Browse files
committed
Fix app_found flag logic in update_catalog_hashes for single app filtering
1 parent 507869a commit 9371dd2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

catalog_reader/scripts/apps_hashes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,6 @@ def update_catalog_hashes(
7070
if not app_metadata_file.is_file():
7171
continue
7272

73-
app_found = True
74-
7573
with open(str(app_metadata_file), 'r') as f:
7674
app_config = yaml.safe_load(f.read())
7775

@@ -109,6 +107,9 @@ def update_catalog_hashes(
109107
message += f' and bumped version from {old_version!r} to {app_config["version"]!r}'
110108
print(message)
111109

110+
if is_single_app:
111+
app_found = True
112+
112113
if is_single_app and not app_found:
113114
verrors.add('app', f'App {app_name!r} not found in train {train_name!r}')
114115
verrors.check()

0 commit comments

Comments
 (0)