Comment 0 for bug 488413

Revision history for this message
Facundo Batista (facundo) wrote : SD crashes when no token found

Sometimes the SD is started but the user hasn't the necessary auth information yet. Right now, it crashes:

2009-10-24 09:53:32,606 - ubuntuone.SyncDaemon.DBus - ERROR - Can't get the auth token
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/dbus_interface.py", line 1053, in connect
    access_token = self.main.get_access_token()
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/main.py", line 286, in get_access_token
    return self.oauth_client.get_access_token()
  File "/usr/lib/python2.6/dist-packages/ubuntuone/syncdaemon/main.py", line 326, in get_access_token
    raise NoAccessToken("No access token found.")
NoAccessToken: No access token found.

What we should do is to alert the applet somehow that we've been started without the user having the proper auth info, and quit.