Skip to content

Commit f79b7a9

Browse files
committed
Refine exceptions handled while reading data from COMMIT and VERSION
Signed-off-by: Tobias Wolf <wolf@b1-systems.de>
1 parent 97e65f6 commit f79b7a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gardenlinux/features/cname_main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def main():
5555
try:
5656
version_data = get_version_and_commit_id_from_files(gardenlinux_root)
5757
version = f"{version_data[0]}-{version_data[1]}"
58-
except:
59-
pass
58+
except RuntimeError:
59+
pass # Final failing of version parsing is handled in cname below
6060

6161
cname = CName(args.cname, arch=arch, version=version)
6262

0 commit comments

Comments
 (0)