mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-23 15:44:44 +00:00
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:
parent
433369f08d
commit
6f4b29cd23
2 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue