Corrected what type of error will be hit if there's no motd
This commit is contained in:
parent
e872935708
commit
1e9bca6806
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue