1
0
Fork 0
mirror of synced 2024-07-01 12:41:40 +12:00

Made sure the format is not printed when no motd is found

This commit is contained in:
Phxntxm 2016-10-07 15:47:10 -05:00
parent d16db79a79
commit 078db24cad

View file

@ -31,6 +31,7 @@ class Core:
# This one will be hit if we return None for that day # This one will be hit if we return None for that day
except TypeError: except TypeError:
await self.bot.say("No message of the day for {}!".format(date)) await self.bot.say("No message of the day for {}!".format(date))
else:
fmt = "Last updated: {}\n\n{}".format(date, motd) fmt = "Last updated: {}\n\n{}".format(date, motd)
await self.bot.say(fmt) await self.bot.say(fmt)
else: else: