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: else:
logger.error( logger.error(
"Exception inside application: %s", "Exception inside application: %s",
exception.__repr__(), exception,
stack_info=True, exc_info=exception,
) )
if not disconnected: if not disconnected:
protocol.handle_exception(exception) protocol.handle_exception(exception)