Log unsafe paths when discovering collections
This commit is contained in:
parent
2d170bd41f
commit
c6c32945a0
@ -481,8 +481,9 @@ class Collection(BaseCollection):
|
|||||||
cls._makedirs_synced(folder)
|
cls._makedirs_synced(folder)
|
||||||
try:
|
try:
|
||||||
filesystem_path = path_to_filesystem(folder, sane_path)
|
filesystem_path = path_to_filesystem(folder, sane_path)
|
||||||
except ValueError:
|
except ValueError as e:
|
||||||
# Path is unsafe
|
# Path is unsafe
|
||||||
|
cls.logger.info(e)
|
||||||
return
|
return
|
||||||
|
|
||||||
# Check if the path exists and if it leads to a collection or an item
|
# Check if the path exists and if it leads to a collection or an item
|
||||||
|
Loading…
Reference in New Issue
Block a user