mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-01 12:16:12 -05:00
Raise, don't return, exception
This commit is contained in:
parent
6dbebef141
commit
d45a114824
@ -388,7 +388,7 @@ class HomeServer(object):
|
|||||||
|
|
||||||
def build_room_member_handler(self):
|
def build_room_member_handler(self):
|
||||||
if self.config.worker_app:
|
if self.config.worker_app:
|
||||||
return Exception("Can't use RoomMemberHandler on workers")
|
raise Exception("Can't use RoomMemberHandler on workers")
|
||||||
return RoomMemberMasterHandler(self)
|
return RoomMemberMasterHandler(self)
|
||||||
|
|
||||||
def build_federation_registry(self):
|
def build_federation_registry(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user