From 05e105806612b3ca47f1f200581684bf036cfe2d Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 19 Oct 2010 15:05:02 +0200 Subject: [PATCH] add a warning when html2text is not found --- weboob/tools/misc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weboob/tools/misc.py b/weboob/tools/misc.py index b8422af8..d38b8b91 100644 --- a/weboob/tools/misc.py +++ b/weboob/tools/misc.py @@ -16,6 +16,7 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +from logging import warning from dateutil import tz import sys import traceback @@ -60,6 +61,7 @@ try: h2t.SKIP_INTERNAL_LINKS = True html2text = h2t.html2text except ImportError: + warning('python-html is not present. HTML pages will not be converted into text.') def html2text(s): return s