Raise, don't return, exception

pull/2987/head
Erik Johnston 2018-03-13 17:24:34 +00:00
parent 6dbebef141
commit d45a114824
1 changed files with 1 additions and 1 deletions

View File

@ -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):