1
0
Fork 0
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:
Dipl. Ing. Péter Varkoly 2024-09-11 08:12:08 +02:00
parent 5cb16a3a2d
commit d75b071fec
3 changed files with 28 additions and 26 deletions

View file

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