Skip to content

Commit

Permalink
Call logger.exception with required argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Gatsik committed May 12, 2022
1 parent e36a501 commit ddc0425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/servercontext.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ async def client_connected(self, stream_reader, stream_writer):
asyncio.CancelledError,
):
pass
except Exception:
self._logger.exception()
except Exception as e:
self._logger.exception(e)
finally:
del self.connections[connection]
# Do not wait for buffers to empty here. This could stop the process
Expand Down

0 comments on commit ddc0425

Please sign in to comment.