diff --git a/TODO.md b/TODO.md index 90e42209..71be2357 100644 --- a/TODO.md +++ b/TODO.md @@ -6,7 +6,6 @@ ## Media - Clean up gui test md -- Pause raise error - Send the monitor PR - nio ClientTimeout @@ -51,7 +50,6 @@ - first undecryptable message - Adding an account with no rooms - Join button 502 -- Retry the initial profile retrieval if it fails (due to e.g. dead server) - Leave box button focus - two upload delegates height bug diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index 5e674e3a..d231b2d1 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -156,7 +156,11 @@ class MatrixClient(nio.AsyncClient): exception = future.exception() if exception: - log.warn("On %s client startup: %s", self.user_id, exception) + log.warn("On %s client startup: %r", self.user_id, exception) + self.profile_task = asyncio.ensure_future( + self.backend.get_profile(self.user_id), + ) + self.profile_task.add_done_callback(on_profile_response) return resp = future.result()