diff sat/plugins/plugin_comp_file_sharing_management.py @ 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 e0429ff7f6b6
children ab2696e34d29
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))