Skip to content

Commit 11678fb

Browse files
committed
Use print help message function for Exception
1 parent 0b7623c commit 11678fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fosslight_source/convert_scancode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ def main():
107107
path_to_find_bin = arg
108108
elif opt == "-o":
109109
output_file_name = arg
110-
except Exception as error:
111-
print("Wrong option " + str(error))
110+
except Exception:
111+
print_help_msg_convert()
112112

113113
if output_file_name == "":
114114
output_dir = os.getcwd()
@@ -117,7 +117,7 @@ def main():
117117
oss_report_name = output_file_name
118118
output_dir = os.path.dirname(os.path.abspath(output_file_name))
119119

120-
logger = init_log(os.path.join(output_dir, "fosslight_src_log_"+start_time+".txt"))
120+
logger = init_log(os.path.join(output_dir, "fosslight_src_log_" + start_time + ".txt"))
121121

122122
convert_json_to_excel(path_to_find_bin, oss_report_name)
123123

0 commit comments

Comments
 (0)