From cad2fd95ffea217301ebeef5233d24cf8f8eacb3 Mon Sep 17 00:00:00 2001 From: lovetox <philipp@hoerist.com> Date: Sat, 28 May 2022 07:51:42 +0200 Subject: [PATCH] chore: Iq: Fix pylint errors --- gajim/common/modules/iq.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gajim/common/modules/iq.py b/gajim/common/modules/iq.py index 3e63068c2c..4cffc02b8c 100644 --- a/gajim/common/modules/iq.py +++ b/gajim/common/modules/iq.py @@ -46,6 +46,7 @@ def _iq_error_received(self, properties: IqProperties ) -> None: self._log.info('Error: %s', properties.error) + assert properties.error is not None if properties.error.condition in ('jid-malformed', 'forbidden', 'not-acceptable'): @@ -73,9 +74,9 @@ def _iq_error_received(self, if file_props: app.ged.raise_event( FileSendError(account=self._account, - jid=str(properties.jid), - file_props=file_props, - error_msg='')) + jid=str(properties.jid), + file_props=file_props, + error_msg='')) self._con.get_module('Bytestream').disconnect_transfer( file_props) raise nbxmpp.NodeProcessed -- GitLab