diff src/plugins/plugin_xep_0065.py @ 1675:fd143578fe89

plugin XEP-0065: fixed bad error handling
author Goffi <goffi@goffi.org>
date Wed, 25 Nov 2015 13:03:10 +0100
parents a34d7f621944
children 244a605623d6
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0065.py	Wed Nov 25 12:13:03 2015 +0100
+++ b/src/plugins/plugin_xep_0065.py	Wed Nov 25 13:03:10 2015 +0100
@@ -760,7 +760,7 @@
             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()