Mercurial > libervia-backend
changeset 2934:0bafdbda7f5f
plugin file sharing management: filter out empty values in allowed_jids
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 03 May 2019 20:41:28 +0200 |
parents | 47df940738a7 |
children | 4f600b4ae819 |
files | sat/plugins/plugin_comp_file_sharing_management.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/plugins/plugin_comp_file_sharing_management.py Fri May 03 13:06:47 2019 +0200 +++ b/sat/plugins/plugin_comp_file_sharing_management.py Fri May 03 20:41:28 2019 +0200 @@ -275,7 +275,8 @@ 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))