Some weird error with dm-ing keeps happening, add better log to catch it

pull/147/head
bobloy 4 years ago
parent 19104241d7
commit 62a70c52c6

@ -120,7 +120,11 @@ class Role(WolfListener):
if self.channel_name: if self.channel_name:
await self.game.register_channel(self.channel_name, self) await self.game.register_channel(self.channel_name, self)
try:
await self.player.send_dm(self.game_start_message) # Maybe embeds eventually await self.player.send_dm(self.game_start_message) # Maybe embeds eventually
except AttributeError as e:
log.exception(self.__repr__())
raise e
async def kill(self, source): async def kill(self, source):
""" """

Loading…
Cancel
Save