Handle missing cheese images

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

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

Loading…
Cancel
Save