plugin XEP-0329: correctly handle error if something is wrong when getting file from component.
This commit is contained in:
parent
39d941ddcf
commit
432afa025e
1 changed files with 7 additions and 0 deletions
|
|
@ -580,6 +580,13 @@ class XEP_0329(object):
|
|||
except exceptions.NotFound:
|
||||
self._iqError(client, iq_elt)
|
||||
return
|
||||
except exceptions.PermissionError:
|
||||
self._iqError(client, iq_elt, condition='not-allowed')
|
||||
return
|
||||
except Exception as e:
|
||||
log.error(u"internal server error: {e}".format(e=e))
|
||||
self._iqError(client, iq_elt, condition='internal-server-error')
|
||||
return
|
||||
iq_result_elt = xmlstream.toResponse(iq_elt, "result")
|
||||
query_elt = iq_result_elt.addElement((NS_FIS, "query"))
|
||||
query_elt[u"node"] = node_path
|
||||
|
|
|
|||
Loading…
Reference in a new issue