diff --git a/server/lobbyconnection.py b/server/lobbyconnection.py index 887966f60..ffebd516e 100644 --- a/server/lobbyconnection.py +++ b/server/lobbyconnection.py @@ -216,8 +216,9 @@ async def on_message_received(self, message): self.get_user_identifier(), cmd ) - except OperationalError: + except OperationalError as e: # When the database goes down, SqlAlchemy will throw an OperationalError + self._logger.error(f'Encountered OperationalError on message received. This could indicate DB is down.') await self.send({ "command": "notice", "style": "error",