check if message exists before sending it, in blog task
This commit is contained in:
parent
8d4488a775
commit
6fb1694b35
1 changed files with 2 additions and 1 deletions
|
|
@ -311,7 +311,8 @@ class PhixxyCom(commands.Cog):
|
|||
try:
|
||||
message = await self.generate_blog()
|
||||
bot_stuff_channel = self.bot.get_channel(544408659174883328)
|
||||
await bot_stuff_channel.send(message)
|
||||
if message:
|
||||
await bot_stuff_channel.send(message)
|
||||
except Exception as error:
|
||||
self.bot.logger.exception("Failed to generate blog")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue