diff --git a/changelog.d/3534.misc b/changelog.d/3534.misc new file mode 100644 index 0000000000000000000000000000000000000000..949c12dc6927092d9baebc232790b4ed4b954b55 --- /dev/null +++ b/changelog.d/3534.misc @@ -0,0 +1 @@ +refactor: use parse_{string,integer} and assert's from http.servlet for deduplication diff --git a/synapse/rest/client/v1/directory.py b/synapse/rest/client/v1/directory.py index c320612aeaadf773ecbcbd67a284ab4375c38b73..69dcd618cb6e3e995017b08d5ad380c325faf3d2 100644 --- a/synapse/rest/client/v1/directory.py +++ b/synapse/rest/client/v1/directory.py @@ -18,7 +18,7 @@ import logging from twisted.internet import defer -from synapse.api.errors import AuthError, SynapseError +from synapse.api.errors import AuthError, Codes, SynapseError from synapse.http.servlet import parse_json_object_from_request from synapse.types import RoomAlias