mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-05 23:30:58 +00:00
catch exceptions on abort
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2612 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
fd652881fb
commit
781ad5fdc0
1 changed files with 4 additions and 1 deletions
|
|
@ -115,7 +115,10 @@ def check_urls (consumer):
|
|||
try:
|
||||
_check_urls(consumer)
|
||||
except KeyboardInterrupt:
|
||||
consumer.abort()
|
||||
try:
|
||||
consumer.abort()
|
||||
except:
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def _check_urls (consumer):
|
||||
|
|
|
|||
Loading…
Reference in a new issue