summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-07-29 16:15:46 +0100
committerOlivier Wilkinson (reivilibre) <olivier@librepush.net>2019-08-30 16:52:41 +0100
commit28c742149d322644a63b2dba62758c3b6355097c (patch)
tree0e444ef18f3f36fdb7733a9276e756d1b1f022f9
parentGive a proper error for invalid pagination tokens. (diff)
downloadsynapse-28c742149d322644a63b2dba62758c3b6355097c.tar.xz
Use async/await syntax.
Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net>
-rw-r--r--synapse/handlers/room_list.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/handlers/room_list.py b/synapse/handlers/room_list.py
index 4774905c40..c911de022c 100644
--- a/synapse/handlers/room_list.py
+++ b/synapse/handlers/room_list.py
@@ -24,8 +24,7 @@ from unpaddedbase64 import decode_base64, encode_base64
 from twisted.internet import defer
 
 from synapse.api.constants import EventTypes, JoinRules
-from synapse.api.errors import Codes, HttpResponseException
-from synapse.api.errors import SynapseError
+from synapse.api.errors import Codes, HttpResponseException, SynapseError
 from synapse.types import ThirdPartyInstanceID
 from synapse.util.caches.descriptors import cachedInlineCallbacks
 from synapse.util.caches.response_cache import ResponseCache