From 2a869c9a9e191c7321dc5a3e16d206329cddb2d7 Mon Sep 17 00:00:00 2001 From: gatsik <74517072+Gatsik@users.noreply.github.com> Date: Thu, 23 Sep 2021 16:28:34 +0300 Subject: [PATCH] Except Exception instead of BaseException --- server/lobbyconnection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/lobbyconnection.py b/server/lobbyconnection.py index 5095b93c8..e740f45e5 100644 --- a/server/lobbyconnection.py +++ b/server/lobbyconnection.py @@ -1066,7 +1066,7 @@ async def command_modvault(self, message): downloads=downloads, date=int(date.timestamp()), uid=uid, name=name, version=version, author=author, ui=ui) await self.send(out) - except BaseException: + except Exception: self._logger.error(f"Error handling table_mod row (uid: {uid})", exc_info=True) elif type == "like": @@ -1092,7 +1092,7 @@ async def command_modvault(self, message): canLike = False else: likers.append(self.player.id) - except BaseException: + except Exception: likers = [] # TODO: Avoid sending all the mod info in the world just because we liked it?