Fix displaying VCard of unknown contact
In some cases sub can be None Fixes #8954
This commit is contained in:
parent
377224002d
commit
a5db65703b
1 changed files with 2 additions and 0 deletions
|
@ -431,6 +431,8 @@ def get_uf_sub(sub):
|
|||
uf_sub = _('From')
|
||||
elif sub == 'both':
|
||||
uf_sub = _('Both')
|
||||
elif sub is None:
|
||||
uf_sub = _('Unknown')
|
||||
else:
|
||||
uf_sub = sub
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue