1
0
Fork 0
forked from github/pelican

Raise exceptions from the autoreload loop if debug is enabled

This commit is contained in:
David Beitey 2013-03-21 15:44:52 +10:00
commit 1ff16f248b
2 changed files with 5 additions and 0 deletions

View file

@ -326,6 +326,9 @@ def main():
files_found_error = False
time.sleep(1) # sleep to avoid cpu load
except Exception as e:
if (args.verbosity == logging.DEBUG):
logger.critical(e.args)
raise
logger.warning(
'Caught exception "{0}". Reloading.'.format(e))
continue