Added some documentation about exception handling.

This commit is contained in:
Bastian Kleineidam 2010-10-13 22:42:43 +02:00
parent fb4689dbe1
commit e6a1c2faf9

View file

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