mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-07 18:30:54 +00:00
Fix the problems found by flake8.
This commit is contained in:
parent
5cb16a3a2d
commit
d75b071fec
3 changed files with 28 additions and 26 deletions
|
@ -69,10 +69,10 @@ class Rights(rights.BaseRights):
|
|||
try:
|
||||
user_pattern = rights_config.get(section, "user")
|
||||
collection_pattern = rights_config.get(section, "collection")
|
||||
allowed_groups = rights_config.get(section, "groups", fallback = "").split(",")
|
||||
allowed_groups = rights_config.get(section, "groups", fallback="").split(",")
|
||||
try:
|
||||
group_match = self._user_groups.intersection(allowed_groups) > 0
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
# Use empty format() for harmonized handling of curly braces
|
||||
user_match = re.fullmatch(user_pattern.format(), user)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue