From 49e5f0a51135e461123c409c0d144b0b7d698a31 Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Sun, 27 Dec 2020 00:29:13 +0200 Subject: [PATCH] Don't crash on outbound_send if matrix payload has no method --- federation/outbound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federation/outbound.py b/federation/outbound.py index f76f309..8062cd3 100644 --- a/federation/outbound.py +++ b/federation/outbound.py @@ -313,7 +313,7 @@ def handle_send( }, "payload": rendered_payload, "urls": {payload["endpoint"]}, - "method": payload["method"], + "method": payload.get("method"), }) except Exception: logger.error(