Skip to content
Snippets Groups Projects
Commit 112c2253 authored by Luke Barnard's avatar Luke Barnard
Browse files

pep8

parent 6850f8ae
Branches
Tags
No related merge requests found
...@@ -872,7 +872,7 @@ class TransportLayerClient(object): ...@@ -872,7 +872,7 @@ class TransportLayerClient(object):
@log_function @log_function
def set_group_join_policy(self, destination, group_id, requester_user_id, def set_group_join_policy(self, destination, group_id, requester_user_id,
content): content):
"""Sets the join policy for a group """Sets the join policy for a group
""" """
path = PREFIX + "/groups/%s/settings/m.join_policy" % (group_id,) path = PREFIX + "/groups/%s/settings/m.join_policy" % (group_id,)
......
...@@ -741,7 +741,9 @@ class GroupsServerHandler(object): ...@@ -741,7 +741,9 @@ class GroupsServerHandler(object):
This will error if the group requires an invite/knock to join This will error if the group requires an invite/knock to join
""" """
group_info = yield self.check_group_is_ours(group_id, requester_user_id, and_exists=True) group_info = yield self.check_group_is_ours(
group_id, requester_user_id, and_exists=True
)
if group_info['join_policy'] != "open": if group_info['join_policy'] != "open":
raise SynapseError(403, "Group is not publicly joinable") raise SynapseError(403, "Group is not publicly joinable")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment