handle M_CONSENT_NOT_GIVEN, fix #15

This commit is contained in:
Guilhem Saurel 2021-10-12 16:23:24 +02:00
parent 5a5e9655be
commit 2a78594861

View file

@ -10,7 +10,10 @@ from nio.responses import RoomSendError, JoinError
from . import conf from . import conf
ERROR_MAP = {"M_FORBIDDEN": HTTPStatus.FORBIDDEN} ERROR_MAP = {
"M_FORBIDDEN": HTTPStatus.FORBIDDEN,
"M_CONSENT_NOT_GIVEN": HTTPStatus.FORBIDDEN,
}
LOGGER = logging.getLogger("matrix_webhook.utils") LOGGER = logging.getLogger("matrix_webhook.utils")
CLIENT = AsyncClient(conf.MATRIX_URL, conf.MATRIX_ID) CLIENT = AsyncClient(conf.MATRIX_URL, conf.MATRIX_ID)