Merge pull request #524 from tbunnyman/loopCPUfix

Add sleep to no files exception to avoid CPU load
This commit is contained in:
Alexis Metaireau 2012-09-28 10:03:13 -07:00
commit 74e9c12695

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)