diff options
-rw-r--r-- | nbxmpp/tcp.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nbxmpp/tcp.py b/nbxmpp/tcp.py index ff91c6b..7c6b6b7 100644 --- a/nbxmpp/tcp.py +++ b/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) |