home · contact · privacy
Fix non-transmission of dictionary clearing.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 11 Sep 2025 22:04:09 +0000 (00:04 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 11 Sep 2025 22:04:09 +0000 (00:04 +0200)
ircplom/client.py

index a2c78b2ad2bcb29e0812b98b0a29ad32bbd4f4a3..12da45ce15cedb1dc73e1d8ac6a58c081bd42574 100644 (file)
@@ -207,6 +207,8 @@ class IntoEndnodeUpdatesMixin(AutoAttrMixin):
         if isinstance(self, _Completable):
             return ([(path, self._completed)] if self._completed is not None
                     else [])
+        if isinstance(self, Dict) and not self._dict:
+            return [(path, None)]
         updates = []
         for key, val in (self._dict.items() if isinstance(self, Dict)
                          else ((k, getattr(self, k))