1
0
Fork 0
mirror of synced 2024-06-26 10:10:44 +12:00

Corrected what type of error will be hit if there's no motd

This commit is contained in:
Phxntxm 2016-10-07 15:42:46 -05:00
parent e872935708
commit 1e9bca6806

View file

@ -38,7 +38,7 @@ class Core:
fmt = "Message of the day for {}:\n\n{}".format(date, motd)
await self.bot.say(fmt)
# This one will be hit if we return None for that day
except AttributeError:
except TypeError:
await self.bot.say("No message of the day for {}!".format(date))
# This will be hit if pendulum fails to parse the date passed
except ValueError: