1
0
Fork 0
forked from github/pelican

Add sleep to no files exception to avoid CPU load

This commit is contained in:
tBunnyMan 2012-09-28 08:53:59 -07:00
commit 55783fc3a1

View file

@ -309,6 +309,7 @@ def main():
if files_found_error == True:
logger.warning("No valid files found in content. Nothing to generate.")
files_found_error = False
time.sleep(1) # sleep to avoid cpu load
except Exception, e:
logger.warning(
"Caught exception \"{}\". Reloading.".format(e)