From beaf50f5c603546111b5b25b9c0f22f18f38480b Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Wed, 3 Sep 2014 16:31:01 +0100 Subject: Bubble up SynapseErrors so expected failures aren't masked. --- synapse/rest/directory.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'synapse/rest/directory.py') diff --git a/synapse/rest/directory.py b/synapse/rest/directory.py index d02b15395b..65aa2196c2 100644 --- a/synapse/rest/directory.py +++ b/synapse/rest/directory.py @@ -71,6 +71,8 @@ class ClientDirectoryServer(RestServlet): yield dir_handler.create_association( room_alias, room_id, servers ) + except SynapseError as e: + raise e except: logger.exception("Failed to create association") -- cgit 1.4.1