Skip to content

Commit 06ab5f4

Browse files
committed
Fix logging errors on Python 3.9
* bdx/__init__.py (log.prettify_arg): Pass all 3 required arguments to `format_exception'.
1 parent 7134f1f commit 06ab5f4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bdx/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ def prettify_arg(arg):
2424
return os.path.relpath(arg)
2525

2626
if isinstance(arg, Exception):
27-
return "\n".join(tb.format_exception(arg))
27+
return "\n".join(
28+
tb.format_exception(type(arg), arg, arg.__traceback__)
29+
)
2830

2931
return arg
3032

0 commit comments

Comments
 (0)