Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
710d772e by wurstsalat at 2025-02-23T13:04:18+01:00
cq: Iq module: Remove strong type assertion
- - - - -
1 changed file:
- gajim/common/modules/iq.py
Changes:
=====================================
gajim/common/modules/iq.py
=====================================
@@ -7,7 +7,6 @@
from __future__ import annotations
import nbxmpp
-from nbxmpp.errors import StanzaError
from nbxmpp.structs import IqProperties
from nbxmpp.structs import StanzaHandler
@@ -37,7 +36,7 @@ def _iq_error_received(self,
properties: IqProperties
) -> None:
self._log.info('Error: %s', properties.error)
- assert isinstance(properties.error, StanzaError)
+ assert properties.error is not None
if properties.error.condition in ('jid-malformed',
'forbidden',
'not-acceptable'):
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/710d772e777ad20c3d98940422d45215e036bf24
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/710d772e777ad20c3d98940422d45215e036bf24
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]