From d1379e349a21ae45e1519929d10da0f5e316792b Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Wed, 14 Aug 2013 10:52:50 +0200 Subject: [PATCH] Don't check the file twice for rights --- radicale/rights.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/radicale/rights.py b/radicale/rights.py index c41da5b..596b975 100644 --- a/radicale/rights.py +++ b/radicale/rights.py @@ -37,9 +37,7 @@ except ImportError: # pylint: enable=F0401 -FILENAME = ( - os.path.expanduser(config.get("rights", "file")) or - log.LOGGER.error("No file name configured for rights type 'regex'")) +FILENAME = os.path.expanduser(config.get("rights", "file")) DEFINED_RIGHTS = { "none": "[rw]\nuser:.*\ncollection:.*\npermission:rw", "owner_write": "[r]\nuser:.*\ncollection:.*\npermission:r\n"