Don't crash on outbound_send if matrix payload has no method

matrix-delivery
Jason Robinson 2020-12-27 00:29:13 +02:00
rodzic 7608047b9e
commit 49e5f0a511
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -313,7 +313,7 @@ def handle_send(
}, },
"payload": rendered_payload, "payload": rendered_payload,
"urls": {payload["endpoint"]}, "urls": {payload["endpoint"]},
"method": payload["method"], "method": payload.get("method"),
}) })
except Exception: except Exception:
logger.error( logger.error(