error on missing pstats

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2313 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-02-17 13:54:55 +00:00
parent d59b6e6190
commit c013fa928a

View file

@ -166,7 +166,7 @@ def print_usage (msg):
def viewprof ():
"""print profiling data and exit"""
if not has_pstats:
linkcheck.log.warn(linkcheck.LOG_CMDLINE,
linkcheck.log.error(linkcheck.LOG_CMDLINE,
_("The `pstats' Python module is not installed,"
" therefore the --viewprof option is disabled."))
sys.exit(1)