mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Add sleep to no files exception to avoid CPU load
This commit is contained in:
parent
d718bc2eba
commit
ffc8ec7a5b
1 changed files with 1 additions and 0 deletions
|
|
@ -309,6 +309,7 @@ def main():
|
||||||
if files_found_error == True:
|
if files_found_error == True:
|
||||||
logger.warning("No valid files found in content. Nothing to generate.")
|
logger.warning("No valid files found in content. Nothing to generate.")
|
||||||
files_found_error = False
|
files_found_error = False
|
||||||
|
time.sleep(1) # sleep to avoid cpu load
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
"Caught exception \"{}\". Reloading.".format(e)
|
"Caught exception \"{}\". Reloading.".format(e)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue