Declare missing exception variable (#4087)

This commit is contained in:
David
2023-04-12 23:36:43 +08:00
committed by GitHub
parent acec8a776f
commit d419979406
2 changed files with 2 additions and 2 deletions

View File

@@ -339,7 +339,7 @@ class Connection(abc.ABC):
except InvalidBufferError as e:
self._log.warning('Server response had invalid buffer: %s', e)
await self._recv_queue.put((None, e))
except Exception:
except Exception as e:
self._log.exception('Unexpected exception in the receive loop')
await self._recv_queue.put((None, e))
else: