1
0
Fork 0
forked from github/pelican

Calls to «print» replaced by the «pelican.log» module.

This commit is contained in:
Skami18 2011-04-19 14:49:46 +02:00
commit 3166e6dfe3
6 changed files with 33 additions and 13 deletions

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from pelican.utils import slugify, truncate_html_words
from pelican.log import *
class Page(object):
"""Represents a page
@ -91,5 +91,5 @@ def is_valid_content(content, f):
content.check_properties()
return True
except NameError as e:
print u" [info] Skipping %s: impossible to find informations about '%s'" % (f, e)
error(u"Skipping %s: impossible to find informations about '%s'" % (f, e))
return False