diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-06-19 17:59:24 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-06-19 17:59:24 (GMT) |
commit | 4f2d096cc69400f17136b0b6fa064a86bb2fb02a (patch) | |
tree | 68158f23985442c8e4e82663907076fb7f67e6b0 | |
parent | 57e5e3cc81751622e66fc228baaad2d38c408cfa (diff) |
Skipped empty bio when printing a profile summary.
-rw-r--r-- | profile.py | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |