mirror of
https://github.com/python/cpython.git
synced 2025-08-23 18:24:46 +00:00
Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
This commit is contained in:
parent
4001e96179
commit
737fb89dd1
36 changed files with 54 additions and 54 deletions
|
@ -301,7 +301,7 @@ def _exit_function(info=info, debug=debug, _run_finalizers=_run_finalizers,
|
|||
_run_finalizers(0)
|
||||
if current_process() is not None:
|
||||
# We check if the current process is None here because if
|
||||
# it's None, any call to ``active_children()`` will throw an
|
||||
# it's None, any call to ``active_children()`` will raise an
|
||||
# AttributeError (active_children winds up trying to get
|
||||
# attributes from util._current_process). This happens in a
|
||||
# variety of shutdown circumstances that are not well-understood
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue