~ralsina/ubuntuone-windows-installer/ui-come-back-to-installer

« back to all changes in this revision

Viewing changes to ubuntuone_installer/gui/qt/currentuser.py

  • Committer: ralsina
  • Date: 2011-07-31 13:22:11 UTC
  • Revision ID: roberto.alsina@canonical.com-20110731132211-e2lys0m4786lmzyy
handle auth errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
        email = str(self.view.ui.email_edit.text())
38
38
        password = str(self.view.ui.password_edit.text())
39
39
        credtool = CredentialsManagementTool()
40
 
        d = yield credtool.login_email_password(
41
 
            email=email,
42
 
            password=password
43
 
        )
44
 
        self.on_logged_in(self.view.wizard().app_name, d)
 
40
        try:
 
41
            d = yield credtool.login_email_password(
 
42
                email=email,
 
43
                password=password
 
44
            )
 
45
            self.on_logged_in(self.view.wizard().app_name, d)
 
46
        except CredentialsError, e:
 
47
            print e, type(e), repr(e)
 
48
            self.on_login_error(e.args[0])