diff --git a/plugins/plugin_xep_0100.py b/plugins/plugin_xep_0100.py index d8303b9e..00143847 100755 --- a/plugins/plugin_xep_0100.py +++ b/plugins/plugin_xep_0100.py @@ -23,6 +23,7 @@ from logging import debug, info, error from twisted.internet import protocol from twisted.words.protocols.jabber import client, jid from twisted.words.protocols.jabber import error as jab_error +import twisted.internet.error import pdb from wokkel import disco, iwokkel @@ -71,8 +72,8 @@ class XEP_0100(): def discoInfoErr(self, failure, entity, request_id): """Something is going wrong with disco""" - failure.trap(jab_error.StanzaError) - error(_("Error when discovering [%(jid)s]: %(condition)s") % {'jid':entity.full(), 'condition':failure.value.condition}) + failure.trap(jab_error.StanzaError,twisted.internet.error.ConnectionLost) + error(_("Error when discovering [%(jid)s]: %(error)s") % {'jid':entity.full(), 'error':failure.getErrorMessage()}) self.__inc_handled_items(request_id)