summary refs log tree commit diff
diff options
context:
space:
mode:
authorKrombel <krombel@krombel.de>2018-07-13 22:19:19 +0200
committerKrombel <krombel@krombel.de>2018-07-13 22:19:19 +0200
commit516f960ad8f4ae8b4fe3740baac9a63a966a2642 (patch)
tree4e4ee09a7a33214c548b57b80fb8e33e8b7c468b
parentrename assert_params_in_request to assert_params_in_dict (diff)
downloadsynapse-516f960ad8f4ae8b4fe3740baac9a63a966a2642.tar.xz
add changelog
-rw-r--r--changelog.d/3534.misc1
-rw-r--r--synapse/rest/client/v1/directory.py2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/3534.misc b/changelog.d/3534.misc
new file mode 100644
index 0000000000..949c12dc69
--- /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 c320612aea..69dcd618cb 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