diff --git a/the_prestige.py b/the_prestige.py index 4a5a3e1..4a91e19 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -44,7 +44,7 @@ async def on_message(msg): elif msg.channel.id == config()["soulscream channel id"]: try: await msg.channel.send(ono.get_stats(msg.author.nick)) - except TypeError: + except TypeError or AttributeError: await msg.channel.send(ono.get_stats(msg.author.name)) except AttributeError: await msg.channel.send(ono.get_stats(msg.author.name))