From ffe8e00046bbd085e6732856a9e558cfe27d2ccf Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Fri, 6 May 2011 22:09:49 +0200 Subject: [PATCH] move the sleep so we correctly handle keyboard interupts --- pelican/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/__init__.py b/pelican/__init__.py index c525c66a..52775f94 100644 --- a/pelican/__init__.py +++ b/pelican/__init__.py @@ -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: