ignore emacs lock files and exception handling for watchers

This commit is contained in:
Deniz Turgut 2013-04-22 20:50:11 -04:00
commit be8837963a
4 changed files with 18 additions and 8 deletions

View file

@ -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.')