forked from github/pelican
Merge branch 'master' of github.com:ametaireau/pelican into fix-functional-tests
This commit is contained in:
commit
e196fb95e1
2 changed files with 7 additions and 1 deletions
|
|
@ -258,7 +258,13 @@ def main():
|
|||
|
||||
time.sleep(.5) # sleep to avoid cpu load
|
||||
except KeyboardInterrupt:
|
||||
logger.warning("Keyboard interrupt, quitting.")
|
||||
break
|
||||
except Exception, e:
|
||||
logger.warning(
|
||||
"Caught exception \"{}\". Reloading.".format(e)
|
||||
)
|
||||
continue
|
||||
else:
|
||||
pelican.run()
|
||||
except Exception, e:
|
||||
|
|
|
|||
|
|
@ -372,7 +372,7 @@ class PagesGenerator(Generator):
|
|||
try:
|
||||
content, metadata = read_file(f)
|
||||
except Exception, e:
|
||||
logger.error(u'Could not process %s\n%s' % (f, str(e)))
|
||||
logger.warning(u'Could not process %s\n%s' % (f, str(e)))
|
||||
continue
|
||||
page = Page(content, metadata, settings=self.settings,
|
||||
filename=f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue