Prefer using own client for fetching own profile

This commit is contained in:
miruka
2019-11-14 16:20:30 -04:00
parent f727645342
commit fc2fb605e3
3 changed files with 17 additions and 8 deletions

View File

@@ -133,7 +133,10 @@ class MatrixClient(nio.AsyncClient):
async def start(self) -> None:
def on_profile_response(future) -> None:
if future.exception():
exception = future.exception()
if exception:
log.warn("On %s client startup: %s", self.user_id, exception)
return
resp = future.result()