Philipp Hörist pushed to branch master at gajim / gajim


Commits:
20adb437 by Philipp Hörist at 2025-10-10T17:54:07+02:00
cq: Discovery: Fix type error

- - - - -


1 changed file:

- gajim/gtk/discovery.py


Changes:

=====================================
gajim/gtk/discovery.py
=====================================
@@ -611,10 +611,12 @@ def __init__(
             raise RuntimeError("You must be connected to browse services")
 
         # Get a ServicesCache object.
-        self.cache = cast(ServicesCache | None, 
app.services_cache.get(account))
-        if self.cache is None:
+        cache = app.services_cache.get(account)
+        if cache is None:
             self.cache = ServicesCache(account)
             app.services_cache[account] = self.cache
+        else:
+            self.cache = cast(ServicesCache, cache)
 
         self._ui = get_builder("service_discovery_window.ui")
         self.set_child(self._ui.service_discovery)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/20adb43704ced322c475236757c36dad9585f266

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


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to