From ce5aded8713f7c132ba9acbfd9f4e1b2f0aa751b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 9 May 2023 22:14:37 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- omeroweb/webclient/webclient_gateway.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/omeroweb/webclient/webclient_gateway.py b/omeroweb/webclient/webclient_gateway.py index 20b1981d85..119036fcd0 100644 --- a/omeroweb/webclient/webclient_gateway.py +++ b/omeroweb/webclient/webclient_gateway.py @@ -1482,7 +1482,11 @@ def updateGroup(self, group, name, permissions, description=None): # can't update current group temp_switch = True # find a group to temp switch to... - gids = [gid for gid in self.getEventContext().memberOfGroups if (gid != 0 and gid != group.id)] + gids = [ + gid + for gid in self.getEventContext().memberOfGroups + if (gid != 0 and gid != group.id) + ] if len(gids) == 0: return ["You can't edit your current group!"] self.setGroupForSession(gids[0])