From b1099cc903776928a08bc6c7220b2248b9f57c0f Mon Sep 17 00:00:00 2001 From: David Rousselie Date: Wed, 14 May 2008 21:54:48 +0200 Subject: [PATCH] Send presence when cancelling account error darcs-hash:20080514195448-86b55-c803a583c5ec672f1778ba5a703fc2b116b48d67.gz --- src/jcl/jabber/component.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/jcl/jabber/component.py b/src/jcl/jabber/component.py index 4b03925..d06bcaa 100644 --- a/src/jcl/jabber/component.py +++ b/src/jcl/jabber/component.py @@ -571,8 +571,8 @@ class AccountManager(object): def cancel_account_error(self, _account): """Reset Account error status and send new available presence""" _account.error = None - return self.get_account_presence_available(_account, - _account.default_lang_class) + self.component.send_stanzas(self.get_account_presence_available(\ + _account, _account.default_lang_class)) ############################################################################### # JCL implementation @@ -1063,7 +1063,7 @@ class JCLComponent(Component, object): """ """ self.send_stanzas(self.account_manager.get_account_error_stanzas(\ _account, exception)) - self.__logger.debug("Error: ", exc_info=True) + self.__logger.error("Error: ", exc_info=True) def get_config_parameter(self, section, parameter): if self.config is not None \