1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-09-15 20:36:55 +00:00

add option to skip broken item instead of triggering exception

This commit is contained in:
Peter Bieringer 2024-06-09 13:57:32 +02:00
parent 518de6b360
commit fc7b50d69f
5 changed files with 19 additions and 1 deletions

View file

@ -40,6 +40,7 @@ class CollectionBase(storage.BaseCollection):
# Path should already be sanitized
self._path = pathutils.strip_path(path)
self._encoding = storage_.configuration.get("encoding", "stock")
self._skip_broken_item = storage_.configuration.get("storage", "skip_broken_item")
if filesystem_path is None:
filesystem_path = pathutils.path_to_filesystem(folder, self.path)
self._filesystem_path = filesystem_path