handle M_CONSENT_NOT_GIVEN, fix #15
This commit is contained in:
parent
5a5e9655be
commit
2a78594861
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue