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

fix: Iq: Remove condition for not existing attribute

parent cad2fd95
No related branches found
No related tags found
No related merge requests found
......@@ -68,18 +68,17 @@ def _iq_error_received(self,
raise nbxmpp.NodeProcessed
if properties.error.condition == 'item-not-found':
if not properties.is_pubsub:
sid = self._get_sid(properties.id)
file_props = FilesProp.getFileProp(self._account, sid)
if file_props:
app.ged.raise_event(
FileSendError(account=self._account,
jid=str(properties.jid),
file_props=file_props,
error_msg=''))
self._con.get_module('Bytestream').disconnect_transfer(
file_props)
raise nbxmpp.NodeProcessed
sid = self._get_sid(properties.id)
file_props = FilesProp.getFileProp(self._account, sid)
if file_props:
app.ged.raise_event(
FileSendError(account=self._account,
jid=str(properties.jid),
file_props=file_props,
error_msg=''))
self._con.get_module('Bytestream').disconnect_transfer(
file_props)
raise nbxmpp.NodeProcessed
self._log.error('Received iq error with unknown id: %s',
properties.error)
......
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