From 6a6ae6683d436c8c34021d981206068b236caaae Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Thu, 9 Mar 2017 22:35:22 -0600 Subject: [PATCH] Don't include at all if there is no value --- cogs/picarto.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cogs/picarto.py b/cogs/picarto.py index 224cee8..32ac5ab 100644 --- a/cogs/picarto.py +++ b/cogs/picarto.py @@ -147,12 +147,8 @@ class Picarto: embed.set_thumbnail(url=data['avatar_url']) for i, result in data.items(): - if i in things_to_print: - result = str(result) - if not result: - result = '\u200B' - - embed.add_field(name=i, value=result) + if i in things_to_print and str(result): + embed.add_field(name=i, value=str(result)) # Social URL's can be given if a user wants them to show # Print them if they exist, otherwise don't try to include them