mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-10 07:34:44 +00:00
Added some documentation about exception handling.
This commit is contained in:
parent
fb4689dbe1
commit
e6a1c2faf9
1 changed files with 5 additions and 0 deletions
|
|
@ -47,8 +47,13 @@ def check_urls (aggregate):
|
|||
" is allowed to start new threads."))
|
||||
abort(aggregate)
|
||||
except Exception:
|
||||
# Catching "Exception" is intentionally done. This saves the program
|
||||
# from badly-programmed libraries that raise all kinds of strange
|
||||
# exceptions.
|
||||
console.internal_error()
|
||||
abort(aggregate)
|
||||
# Not catched exceptions at this point are SystemExit and GeneratorExit,
|
||||
# and both should be handled by the calling layer.
|
||||
|
||||
|
||||
def check_url (aggregate):
|
||||
|
|
|
|||
Loading…
Reference in a new issue