From 2844865e3a1761d37e96c047cc62475dcea8789d Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 17 Oct 2018 21:36:09 +0300 Subject: [PATCH] Fix potential await bug --- maubot/matrix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maubot/matrix.py b/maubot/matrix.py index aa18afc..d3dae09 100644 --- a/maubot/matrix.py +++ b/maubot/matrix.py @@ -112,12 +112,12 @@ class MaubotMatrixClient(MatrixClient): except (KeyError, ValueError): pass - def call_handlers(self, event: Event) -> Awaitable[None]: + async def call_handlers(self, event: Event) -> None: if isinstance(event, MessageEvent): if event.sender == self.mxid: return event = MaubotMessageEvent(event, self) - return super().call_handlers(event) + return await super().call_handlers(event) async def get_event(self, room_id: RoomID, event_id: EventID) -> Event: event = await super().get_event(room_id, event_id)