mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-19 13:51:01 +00:00
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:
parent
d59b6e6190
commit
c013fa928a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue