summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-03-13 17:24:34 +0000
committerErik Johnston <erik@matrix.org>2018-03-13 17:24:34 +0000
commitd45a1148245839c5f9776fee6d463ed69981d729 (patch)
treec799ec325d741e5a0e3695fd78f1bde3fe2ec570 /synapse/server.py
parentAdd missing param to docstrings (diff)
downloadsynapse-d45a1148245839c5f9776fee6d463ed69981d729.tar.xz
Raise, don't return, exception
Diffstat (limited to '')
-rw-r--r--synapse/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/server.py b/synapse/server.py
index 3d47e2793b..6ffe900b74 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -388,7 +388,7 @@ class HomeServer(object):
 
     def build_room_member_handler(self):
         if self.config.worker_app:
-            return Exception("Can't use RoomMemberHandler on workers")
+            raise Exception("Can't use RoomMemberHandler on workers")
         return RoomMemberMasterHandler(self)
 
     def build_federation_registry(self):