Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
22719bb1 by wurstsalat at 2025-08-23T11:44:20+02:00
fix: VCard: Catch timeout error while receiving VCard
Fixes #12441
- - - - -
1 changed file:
- gajim/common/modules/vcard4.py
Changes:
=====================================
gajim/common/modules/vcard4.py
=====================================
@@ -16,6 +16,7 @@
from gi.repository import GLib
from nbxmpp.errors import StanzaError
+from nbxmpp.errors import TimeoutStanzaError
from nbxmpp.modules.vcard4 import VCard
from nbxmpp.protocol import JID
from nbxmpp.task import Task
@@ -77,7 +78,7 @@ def _on_vcard_from_cache(
def _on_vcard_received(self, task: Task) -> None:
try:
vcard = cast(VCard | None, task.finish())
- except StanzaError as err:
+ except (StanzaError, TimeoutStanzaError) as err:
self._log.info('Error loading VCard: %s', err)
vcard = None
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/22719bb189e859fd362b2114359dd59d27bee3a4
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/22719bb189e859fd362b2114359dd59d27bee3a4
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]