Skip to content
Snippets Groups Projects
Commit cad2fd95 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

chore: Iq: Fix pylint errors

parent 3f5191ab
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment