mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Log watching files which don't exist
This commit is contained in:
parent
7643e0e92b
commit
5519efef2e
1 changed files with 5 additions and 1 deletions
|
|
@ -773,7 +773,11 @@ def wait_for_changes(settings_file, reader_class, settings):
|
|||
os.path.join(content_path, path) for path in settings.get('STATIC_PATHS', [])
|
||||
)
|
||||
|
||||
watching_paths = [os.path.abspath(p) for p in watching_paths if p and os.path.exists(p)]
|
||||
watching_paths = [os.path.abspath(p) for p in watching_paths if p]
|
||||
|
||||
for path in watching_paths:
|
||||
if not os.path.exists(path):
|
||||
logger.warning("Unable to watch path '%s' as it does not exist.", path)
|
||||
|
||||
return next(watchfiles.watch(
|
||||
*watching_paths,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue