Handle missing cheese images

master
Nikola Forró 6 years ago
parent 340e41d339
commit c83efe753c

@ -235,8 +235,9 @@ class DiscordClient(discord.Client):
else:
embed = discord.Embed(title=result['name'], url=result['url'],
description=result['description'], color=0xffd700)
embed.set_thumbnail(url=result['image'])
embed.set_image(url=result['image'])
if result['image']:
embed.set_thumbnail(url=result['image'])
embed.set_image(url=result['image'])
for point in result['summary']:
try:
name, value = point.split(':')

Loading…
Cancel
Save