plugin XEP-0065: fixed bad error handling
This commit is contained in:
parent
78a86f7440
commit
5afdf1c1ca
1 changed files with 2 additions and 2 deletions
|
|
@ -760,7 +760,7 @@ class XEP_0065(object):
|
|||
pass
|
||||
try:
|
||||
proxy = (yield self.host.findServiceEntities('proxy', 'bytestreams', profile=profile)).pop()
|
||||
except (exceptions.CancelError, StopIteration):
|
||||
except (defer.CancelledError, StopIteration):
|
||||
notFound(server)
|
||||
iq_elt = client.IQ('get')
|
||||
iq_elt['to'] = proxy.full()
|
||||
|
|
|
|||
Loading…
Reference in a new issue