mirror of
https://github.com/django/daphne.git
synced 2025-07-27 07:29:46 +03:00
Fix wrong context
Changed in version 3.5: The exc_info parameter can now accept exception instances.
This commit is contained in:
parent
275e508e1d
commit
0ea4cffbb3
|
@ -284,8 +284,8 @@ class Server(object):
|
|||
else:
|
||||
logger.error(
|
||||
"Exception inside application: %s",
|
||||
exception.__repr__(),
|
||||
stack_info=True,
|
||||
exception,
|
||||
exc_info=exception,
|
||||
)
|
||||
if not disconnected:
|
||||
protocol.handle_exception(exception)
|
||||
|
|
Loading…
Reference in New Issue
Block a user