mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
parent
1bb1f37b3d
commit
a9688f21a8
1 changed files with 2 additions and 2 deletions
|
@ -283,8 +283,8 @@ def load(paths: Optional[Iterable[Tuple[str, bool]]] = None
|
|||
config = {s: {o: parser[s][o] for o in parser.options(s)}
|
||||
for s in parser.sections()}
|
||||
except Exception as e:
|
||||
if not (ignore_if_missing and
|
||||
isinstance(e, (FileNotFoundError, PermissionError))):
|
||||
if not (ignore_if_missing and isinstance(e, (
|
||||
FileNotFoundError, NotADirectoryError, PermissionError))):
|
||||
raise RuntimeError("Failed to load %s: %s" % (config_source, e)
|
||||
) from e
|
||||
config = Configuration.SOURCE_MISSING
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue