plugin XEP-0329: better error handling in onComponentAffiliationsGet
This commit is contained in:
parent
4c5c6a081a
commit
7f713e39f3
1 changed files with 6 additions and 0 deletions
|
|
@ -827,6 +827,12 @@ class XEP_0329(object):
|
|||
peer_jid, owner = self._compParseJids(client, iq_elt)
|
||||
is_owner = peer_jid.userhostJID() == owner
|
||||
affiliations = {owner: 'owner'}
|
||||
except exceptions.NotFound:
|
||||
client.sendError(iq_elt, "item-not-found")
|
||||
return
|
||||
except Exception as e:
|
||||
client.sendError(iq_elt, "internal-server-error", str(e))
|
||||
return
|
||||
else:
|
||||
from_jid_bare = from_jid.userhostJID()
|
||||
is_owner = from_jid_bare == file_data.get('owner')
|
||||
|
|
|
|||
Loading…
Reference in a new issue