Handle missing cheese images

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

@ -235,8 +235,9 @@ 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)
embed.set_thumbnail(url=result['image']) if result['image']:
embed.set_image(url=result['image']) embed.set_thumbnail(url=result['image'])
embed.set_image(url=result['image'])
for point in result['summary']: for point in result['summary']:
try: try:
name, value = point.split(':') name, value = point.split(':')

Loading…
Cancel
Save