From 4f2d096cc69400f17136b0b6fa064a86bb2fb02a Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Mon, 19 Jun 2017 19:59:24 +0200 Subject: Skipped empty bio when printing a profile summary. --- profile.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/profile.py b/profile.py index e4d772b..38853a7 100644 --- a/profile.py +++ b/profile.py @@ -115,8 +115,13 @@ class TinderProfile(object): while bio[-1] == '\n' or bio[-1] == ' ': bio = bio[:-1] - desc += '\n\n' - desc += ' ' + bio + if len(bio) == 0: + bio = None + break + + if bio: + desc += '\n\n' + desc += ' ' + bio return desc -- cgit v0.11.2-87-g4458