plugin XEP-0065: fixed bad error handling

This commit is contained in:
Goffi 2015-11-25 13:03:10 +01:00
commit 5afdf1c1ca

View file

@ -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()