mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-31 13:10:37 +00:00
don't catch SystemExit, and no bare except
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3184 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
938d193446
commit
ffe233c2eb
1 changed files with 2 additions and 2 deletions
|
|
@ -39,11 +39,11 @@ def check_urls (aggregate):
|
|||
aggregate.start_threads()
|
||||
# blocks until all urls are checked
|
||||
aggregate.urlqueue.join()
|
||||
except (KeyboardInterrupt, SystemExit):
|
||||
except KeyboardInterrupt:
|
||||
linkcheck.log.warn(linkcheck.LOG_CHECK,
|
||||
"keyboard interrupt; waiting for active threads to finish")
|
||||
aggregate.abort()
|
||||
except:
|
||||
except StandardError:
|
||||
status.internal_error()
|
||||
aggregate.abort()
|
||||
status.disable_status()
|
||||
|
|
|
|||
Loading…
Reference in a new issue