Fixed error when displaying certain user profile info. Closes #29
This commit is contained in:
parent
fa187be88a
commit
d056bd0bd2
@ -5,6 +5,7 @@
|
||||
* Added experimental support to "subscribers" buffer, inside frienship requests. This shows friend requests that have been declined by the current user.
|
||||
* Fixed an error in Socializer that was making it unable to detect unread messages properly.
|
||||
* Socializer should save all tracebacks directly to error.log instead of displaying an error message during exit. ([#27,](https://code.manuelcortez.net/manuelcortez/socializer/issues/27))
|
||||
* When displaying user profiles, fixed an error where a married person without specifing relation partner would cause an error in the program. ([#29,](https://code.manuelcortez.net/manuelcortez/socializer/issues/29))
|
||||
|
||||
## Changes in version 0.18 (21.01.2019)
|
||||
|
||||
|
@ -113,7 +113,10 @@ class userProfilePresenter(base.basePresenter):
|
||||
elif person["relation"] == 3:
|
||||
r = _("Engaged with {0} {1}").format(person["relation_partner"]["first_name"], person["relation_partner"]["last_name"])
|
||||
elif person["relation"] == 4:
|
||||
r = _("Married with {0} {1}").format(person["relation_partner"]["first_name"], person["relation_partner"]["last_name"])
|
||||
if "relation_partner" in person:
|
||||
r = _("Married to {0} {1}").format(person["relation_partner"]["first_name"], person["relation_partner"]["last_name"])
|
||||
else:
|
||||
r = _("Married")
|
||||
elif person["relation"] == 5:
|
||||
r = _("It's complicated")
|
||||
elif person["relation"] == 6:
|
||||
|
Loading…
Reference in New Issue
Block a user