File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 66"""
77
88import argparse
9+ import logging
910import os
1011import re
1112import sys
@@ -81,7 +82,13 @@ def main() -> None:
8182 try :
8283 version_data = get_version_and_commit_id_from_files (gardenlinux_root )
8384 version = f"{ version_data [0 ]} -{ version_data [1 ]} "
84- except :
85+ except RuntimeError as exc :
86+ logging .debug (
87+ "Failed to parse version information for GL root '{0}': {1}" .format (
88+ gardenlinux_root , exc
89+ )
90+ )
91+
8592 version = args .default_version
8693
8794 if args .cname :
Original file line number Diff line number Diff line change 88from functools import reduce
99from os .path import basename , dirname
1010import argparse
11+ import logging
1112import re
1213
1314from .cname import CName
@@ -55,8 +56,12 @@ def main():
5556 try :
5657 version_data = get_version_and_commit_id_from_files (gardenlinux_root )
5758 version = f"{ version_data [0 ]} -{ version_data [1 ]} "
58- except :
59- pass
59+ except RuntimeError as exc :
60+ logging .warning (
61+ "Failed to parse version information for GL root '{0}': {1}" .format (
62+ gardenlinux_root , exc
63+ )
64+ )
6065
6166 cname = CName (args .cname , arch = arch , version = version )
6267
You can’t perform that action at this time.
0 commit comments