Mercurial > libervia-backend
diff src/stdui/ui_profile_manager.py @ 1060:aa15453ec54d
core (xmpp), stdui (profile_manager), bridge, frontends: raise an exception if the XMPP connection failed instead of sending a signal
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 23 May 2014 09:59:35 +0200 |
parents | 066308706dc6 |
children | 6ec513ad92c2 |
line wrap: on
line diff
--- a/src/stdui/ui_profile_manager.py Fri May 23 10:40:54 2014 +0200 +++ b/src/stdui/ui_profile_manager.py Fri May 23 09:59:35 2014 +0200 @@ -129,4 +129,6 @@ xmpp_password = data[xml_tools.formEscape('xmpp_password')] d = self.host.memory.setParam("Password", xmpp_password, "Connection", profile_key=profile) d.addCallback(lambda dummy: self.host.asyncConnect(profile)) - return {} + d.addCallback(lambda dummy: {}) + d.addErrback(lambda dummy: self._changeXMPPPassword({}, profile)) + return d