mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 19:35:39 +00:00
handle M_CONSENT_NOT_GIVEN, fix #15
This commit is contained in:
@@ -10,7 +10,10 @@ from nio.responses import RoomSendError, JoinError
|
||||
|
||||
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")
|
||||
CLIENT = AsyncClient(conf.MATRIX_URL, conf.MATRIX_ID)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user