Fix a bug in the exception handler for a page reader

This commit is contained in:
Kyle Fuller 2011-12-24 00:57:12 +00:00
commit 6ca3fd423b

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)