improve error message on failed module load

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@744 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2003-01-09 19:20:43 +00:00
parent 433369f08d
commit 6f4b29cd23
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
1.8.4
* Improve error message for failing htmlsax module import
Changed files: linkcheck/parser/htmllib.py
1.8.3
* add missing imports for StringUtil in log classes, defer i18n of log
field names (used for CGI scripts)

View file

@ -18,8 +18,8 @@
import sys
try:
import htmlsax
except ImportError:
sys.stderr.write("""Could not import the `htmlsax' parser module.""")
except ImportError, msg:
sys.stderr.write("Could not import the parser module `linkcheck.parser.htmlsax': %s."%`msg`)
sys.exit(1)
class HtmlParser: