prevent traceback. Fixes #8936

This commit is contained in:
Yann Leboulanger 2018-03-29 09:41:40 +02:00
parent 612b7b4302
commit a884ba6762
1 changed files with 1 additions and 3 deletions

View File

@ -431,10 +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
uf_sub = _('Unknown')
return uf_sub