Mercurial > libervia-backend
changeset 1074:a47995155e55
frontends (quick_frontend): fixes the handling of asyncConnect failure
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 15 Jun 2014 16:09:30 +0200 (2014-06-15) |
parents | f094583732de |
children | 7b4600ad73ad |
files | frontends/src/quick_frontend/quick_app.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_app.py Sun Jun 15 16:06:02 2014 +0200 +++ b/frontends/src/quick_frontend/quick_app.py Sun Jun 15 16:09:30 2014 +0200 @@ -157,7 +157,10 @@ if not errback: def errback(failure): log.error(_(u"Can't connect profile [%s]") % failure) - self.launchAction(C.CHANGE_XMPP_PASSWD_ID, {}, profile_key=profile) + if failure.module.startswith('twisted.words.protocols.jabber') and failure.condition == "not-authorized": + self.launchAction(C.CHANGE_XMPP_PASSWD_ID, {}, profile_key=profile) + else: + self.showDialog(failure.message, failure.fullname, 'error') self.bridge.asyncConnect(profile, callback=callback, errback=errback) def plug_profile_4(self, watched, autoconnect, profile):