plugin file sharing management: filter out empty values in allowed_jids

This commit is contained in:
Goffi 2019-05-03 20:41:28 +02:00
commit b2e22c6af8

View file

@ -275,7 +275,8 @@ class FileSharingManagement(object):
allowed_jids = None
else:
try:
allowed_jids = [jid.JID(v.strip()) for v in read_allowed.values]
allowed_jids = [jid.JID(v.strip()) for v in read_allowed.values
if v.strip()]
except RuntimeError as e:
log.warning(_(u"Can't use read_allowed values: {reason}").format(
reason=e))