Merge pull request #200 from kylef/except

Fix a bug in the exception handler for a page reader
This commit is contained in:
Alexis Metaireau 2011-12-24 04:29:47 -08:00
commit 501e1b8524

View file

@ -332,7 +332,7 @@ class PagesGenerator(Generator):
try:
content, metadata = read_file(f)
except Exception, e:
error(u'Could not process %s\n%s' % (filename, str(e)))
error(u'Could not process %s\n%s' % (f, str(e)))
continue
page = Page(content, metadata, settings=self.settings,
filename=f)