From 51f25504da5281bb3ea5d75f2940f29faeffae37 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 21 Jun 2015 13:43:05 +0100 Subject: Don't add about-user output if field is empty string --- fingerchange.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']) -- cgit v1.2.3-70-g09d2