mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
ignore emacs lock files and exception handling for watchers
This commit is contained in:
parent
740bb46e6d
commit
be8837963a
4 changed files with 18 additions and 8 deletions
|
|
@ -353,8 +353,6 @@ def main():
|
|||
|
||||
pelican.run()
|
||||
|
||||
time.sleep(.5) # sleep to avoid cpu load
|
||||
|
||||
except KeyboardInterrupt:
|
||||
logger.warning("Keyboard interrupt, quitting.")
|
||||
break
|
||||
|
|
@ -366,6 +364,10 @@ def main():
|
|||
logger.warning(
|
||||
'Caught exception "{0}". Reloading.'.format(e))
|
||||
|
||||
finally:
|
||||
time.sleep(.5) # sleep to avoid cpu load
|
||||
|
||||
|
||||
else:
|
||||
if next(watchers['content']) is None:
|
||||
logger.warning('No valid files found in content.')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue