XEP-0047: return the correct error type on not-acceptable (example 5).

This commit is contained in:
Emmanuel Gil Peyrot 2015-04-14 17:38:11 +02:00
parent aa022204ee
commit 990113f8e7

View file

@ -162,7 +162,7 @@ class XEP_0047(BasePlugin):
raise XMPPError(etype='modify', condition='bad-request')
if not self._accept_stream(iq):
raise XMPPError(etype='modify', condition='not-acceptable')
raise XMPPError(etype='cancel', condition='not-acceptable')
if size > self.max_block_size:
raise XMPPError('resource-constraint')