From 3ebb11aa69f517da70db6836367d0ecac3e65e6b Mon Sep 17 00:00:00 2001 From: miruka Date: Tue, 12 Nov 2019 07:45:54 -0400 Subject: [PATCH] Raise on room send error instead of logging --- src/python/matrix_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/matrix_client.py b/src/python/matrix_client.py index 639ddcd4..1277be37 100644 --- a/src/python/matrix_client.py +++ b/src/python/matrix_client.py @@ -411,7 +411,7 @@ class MatrixClient(nio.AsyncClient): ) if isinstance(response, nio.RoomSendError): - log.error("Sending message failed: %s", response) + raise MatrixError.from_nio(response) async def load_past_events(self, room_id: str) -> bool: