Skip to content

Commit 33d12cc

Browse files
committed
Use 3.10+ syntax for format_exception
1 parent 35ccdfd commit 33d12cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_tasks/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_module_path(val: Any) -> str:
6161

6262

6363
def get_exception_traceback(exc: BaseException) -> str:
64-
return "".join(format_exception(type(exc), exc, exc.__traceback__))
64+
return "".join(format_exception(exc))
6565

6666

6767
def get_random_id() -> str:

0 commit comments

Comments
 (0)