diff --git a/src/utils/web.py b/src/utils/web.py index 94313c900..87598fab8 100644 --- a/src/utils/web.py +++ b/src/utils/web.py @@ -190,7 +190,7 @@ def htmlToText(s, tagReplace=' '): """Turns HTML into text. tagReplace is a string to replace HTML tags with. """ try: - import chardet + import chardet.universaldetector except ImportError: s = s.decode('utf8') else: