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