mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
move the sleep so we correctly handle keyboard interupts
This commit is contained in:
parent
d03a412e5b
commit
ffe8e00046
1 changed files with 1 additions and 1 deletions
|
|
@ -141,9 +141,9 @@ def main():
|
|||
try:
|
||||
if files_changed(pelican.path, pelican.markup):
|
||||
pelican.run()
|
||||
time.sleep(.5) # sleep to avoid cpu load
|
||||
except KeyboardInterrupt:
|
||||
break
|
||||
time.sleep(.5) # sleep to avoid cpu load
|
||||
else:
|
||||
pelican.run()
|
||||
except Exception, e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue