Raise on room send error instead of logging

This commit is contained in:
miruka 2019-11-12 07:45:54 -04:00
parent 5a04bbaa93
commit 3ebb11aa69

View File

@ -411,7 +411,7 @@ class MatrixClient(nio.AsyncClient):
) )
if isinstance(response, nio.RoomSendError): 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: async def load_past_events(self, room_id: str) -> bool: