mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Log if the file used for rights management is not found
This commit is contained in:
parent
fce91e7060
commit
ca0a1ecfde
1 changed files with 3 additions and 1 deletions
|
@ -64,7 +64,9 @@ FILENAME = os.path.expanduser(config.get("rights", "file"))
|
|||
if FILENAME:
|
||||
log.LOGGER.debug("Reading rights from file %s" % FILENAME)
|
||||
RIGHTS = ConfigParser()
|
||||
RIGHTS.read(FILENAME)
|
||||
if not RIGHTS.read(FILENAME):
|
||||
log.LOGGER.error(
|
||||
"File '%s' not found for rights management" % FILENAME)
|
||||
else:
|
||||
log.LOGGER.error("No file name configured for rights type 'from_file'")
|
||||
RIGHTS = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue