Fix wrong context

Changed in version 3.5: The exc_info parameter can now accept exception instances.
This commit is contained in:
LittlePony 2020-02-02 19:03:28 +03:00 committed by GitHub
parent 275e508e1d
commit 0ea4cffbb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)