plugin file sharing management: filter out empty values in allowed_jids
This commit is contained in:
parent
8a513c4829
commit
b2e22c6af8
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue