Skip to content

Commit cc1588f

Browse files
authored
Adding missing import
1 parent cc33fbe commit cc1588f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

azure_functions_worker/logging.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import logging
55
import logging.handlers
66
import sys
7+
import traceback
78
from typing import Optional
89

910
# Logging Prefixes
@@ -22,7 +23,8 @@
2223

2324
def format_exception(exception):
2425
msg = str(exception) + "\n"
25-
msg += ''.join(traceback.format_exception(etype=type(exception), value=exception, tb=exception.__traceback__))
26+
msg += ''.join(traceback.format_exception(
27+
etype=type(exception), value=exception, tb=exception.__traceback__))
2628
return msg
2729

2830

0 commit comments

Comments
 (0)