summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2015-06-21 14:39:26 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-21 14:39:26 +0200
commit5650e1dfd84c45eecf4d6a926c927e765f6a7f71 (patch)
tree344a5dd55df68b9dfdbf240b2d4802e99c79a429
parentdbbe091a5933adb3ebbb35e8eacfef1fc611ed9d (diff)
downloadfingerchange-5650e1dfd84c45eecf4d6a926c927e765f6a7f71.tar.xz
Skip website if empty
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--fingerchange.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/fingerchange.py b/fingerchange.py
index a908398..30936ad 100644
--- a/fingerchange.py
+++ b/fingerchange.py
@@ -84,9 +84,11 @@ def format_user(user, long_output=True):
msg += format_field('reputation', user['reputation'])
if 'location' in user:
msg += format_field('location', user['location'])
+
msg += format_field('profile', format_url(user['link']))
- if 'website_url' in user:
+ if 'website_url' in user and len(user['website_url']) > 0:
msg += format_field('website', format_url(user['website_url']))
+
msg += format_rep_changes(user)
msg += '\n'