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:
calvin 2006-09-24 10:05:10 +00:00
parent 5d26f2a5cd
commit 19c2ce7fe0

View file

@ -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)