Skip to content

Commit 699330a

Browse files
committed
Making the returns explicit
1 parent 6b8a330 commit 699330a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

azure_functions_worker/logging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
error_handler: Optional[logging.Handler] = None
2222

2323

24-
def format_exception(exception):
24+
def format_exception(exception: Exception) -> str:
2525
msg = str(exception) + "\n"
2626
if sys.version_info.minor < 10:
2727
msg += ''.join(traceback.format_exception(
@@ -31,7 +31,7 @@ def format_exception(exception):
3131
elif sys.version_info.minor == 10:
3232
msg += ''.join(traceback.format_exception(exception))
3333
else:
34-
return exception
34+
msg = str(exception)
3535
return msg
3636

3737

0 commit comments

Comments
 (0)