diff --git a/matrix/server.py b/matrix/server.py index dda861e..0fdb37f 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -1231,6 +1231,9 @@ def _print_message_error(self, message): server_buffer_prnt(self, pprint.pformat(message.response.body)) def handle_own_messages_error(self, response): + if response.room_id not in self.room_buffers: + return + room_buffer = self.room_buffers[response.room_id] if response.uuid not in room_buffer.printed_before_ack_queue: