Skip to content

Commit

Permalink
Except Exception instead of BaseException
Browse files Browse the repository at this point in the history
  • Loading branch information
Gatsik committed Sep 23, 2021
1 parent 7393b61 commit 2a869c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/lobbyconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand All @@ -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?
Expand Down

0 comments on commit 2a869c9

Please sign in to comment.