diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-21 13:43:05 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-21 13:43:05 +0100 |
commit | 51f25504da5281bb3ea5d75f2940f29faeffae37 (patch) | |
tree | 02af1bb6510d72221ed959df9c553bfc48c4ac4e | |
parent | 7c4e7430d0c35cd325722f52735f79bcbc3022f8 (diff) | |
download | fingerchange-51f25504da5281bb3ea5d75f2940f29faeffae37.tar.xz |
Don't add about-user output if field is empty string
-rwxr-xr-x | fingerchange.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fingerchange.py b/fingerchange.py index 83419a1..b34c009 100755 --- a/fingerchange.py +++ b/fingerchange.py @@ -94,7 +94,7 @@ def format_user(user, long_output=True): msg += format_rep_changes(user) msg += '\n' - if long_output and 'about_me' in user: + if long_output and 'about_me' in user and len(user['about_me']) > 0: msg += format_header('About User', '-') + '\n' soup = BeautifulSoup(user['about_me']) |