mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
test: fix traceback.print_exception() usage on older Python versions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user