mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-31 13:10:37 +00:00
catch thread errors separately
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3481 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
5d26f2a5cd
commit
19c2ce7fe0
1 changed files with 6 additions and 0 deletions
|
|
@ -18,6 +18,7 @@
|
|||
Management of checking a queue of links with several threads.
|
||||
"""
|
||||
import time
|
||||
import thread
|
||||
import linkcheck
|
||||
import linkcheck.log
|
||||
import linkcheck.cache.urlqueue
|
||||
|
|
@ -43,6 +44,11 @@ def check_urls (aggregate):
|
|||
aggregate.logger.end_log_output()
|
||||
except KeyboardInterrupt:
|
||||
interrupt(aggregate)
|
||||
except thread.error:
|
||||
linkcheck.log.warn(linkcheck.LOG_CHECK,
|
||||
_("Could not start a new thread. Check that the current user" \
|
||||
" is allowed to start new threads."))
|
||||
abort(aggregate)
|
||||
except:
|
||||
console.internal_error()
|
||||
abort(aggregate)
|
||||
|
|
|
|||
Loading…
Reference in a new issue