Comment 1 for bug 2003996

Revision history for this message
Nathan Teodosio (nteodosio) wrote :

Since poll_for_magic_token runs in a thread, a not handled exception raised there terminates only the polling thread and indicates some connection problem.

I cannot specifically get the TimeoutError (at least by disconnecting after initiating the Ubuntu Pro dialog), but rather ConnectivityError, as the API indeed specifies[1]. {unhandled-exception.log}

Simply ignoring the exceptions raised from wait() is fine {exception-caught.log}, but the user should likely be informed that the connection to the server is failing for whatever reason.

All in all, the reported error is innocuous but the UI should likely to warn the user about connectivity issue.

[1]: https://github.com/canonical/ubuntu-advantage-client/blob/main/docs/references/api.md#uproattachmagicwaitv1