From 556749aa35eec43a94a1111d93acf5f9aa3e85a6 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 6 Jul 2019 17:29:00 -0400 Subject: [PATCH] =?UTF-8?q?LimitExceededError=20=E2=86=92=20ErrorResponse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/python/matrix_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index ea4aed80..a8e50650 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -240,9 +240,9 @@ class MatrixClient(nio.AsyncClient): ) - async def onLimitExceededError(self, resp: nio.LimitExceededError) -> None: + async def onErrorResponse(self, resp: nio.ErrorResponse) -> None: # TODO: show something in the client - log.warning("Failed to send message: %s", resp) + log.warning(resp) # Callbacks for nio events