Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits: efd79065 by lovetox at 2020-08-14T12:47:43+02:00 TCP: Catch Runtime error
Fixes #101
- - - - -
1 changed file:
- nbxmpp/tcp.py
Changes:
===================================== nbxmpp/tcp.py ===================================== @@ -286,6 +286,13 @@ class TCPConnection(Connection): self._log.error('Write Error: %s', error) return
+ except RuntimeError as error: + # PyGObject raises a RuntimeError when it failed to for some reason + # to convert the GError. Why it failed to convert is printed by + # PyGObject + self._log.error(error) + return + data = data.decode() self._log_stanza(data, received=False)
View it on GitLab: https://dev.gajim.org/gajim/python-nbxmpp/-/commit/efd790652de1ae4bde35dfae4...