Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
95317a4e by wurstsalat at 2022-08-15T11:03:39+02:00
fix: BlockingList: Don’t fail with placeholder address

Fixes #11084

- - - - -


1 changed file:

- gajim/gtk/blocking.py


Changes:

=====================================
gajim/gtk/blocking.py
=====================================
@@ -127,6 +127,9 @@ def _on_save(self, _button: Gtk.Button) -> None:
 
         blocked_jids: set[JID] = set()
         for item in self._ui.blocking_store:
+            if not item[0]:
+                # No address/placeholder
+                continue
             blocked_jids.add(JID.from_string(item[0].lower()))
 
         unblock_jids = self._prev_blocked_jids - blocked_jids



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/95317a4e3580298bf040ee6ae84fc664ef7959dd

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/95317a4e3580298bf040ee6ae84fc664ef7959dd
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to