1
0
forked from drath/libratbag

test: fix traceback.print_exception() usage on older Python versions

This commit is contained in:
Yaroslav Chvanov
2023-03-02 05:46:44 +03:00
parent e7a738086c
commit 265e1cee1a

View File

@@ -326,9 +326,9 @@ def main() -> None:
try:
validate_data_file_name(path_str)
parse_data_file(path_str)
except ValueError as e:
except ValueError:
is_error = True
traceback.print_exception(e, file=sys.stdout)
traceback.print_exc(file=sys.stdout)
if is_error:
raise SystemExit(1)