forked from github/pelican
Add sleep to no files exception to avoid CPU load
This commit is contained in:
parent
7828614459
commit
55783fc3a1
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue