diff --git a/py3.10/multiprocess/pool.py b/py3.10/multiprocess/pool.py index 961d7e5..07febc0 100644 --- a/py3.10/multiprocess/pool.py +++ b/py3.10/multiprocess/pool.py @@ -123,7 +123,7 @@ def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None, job, i, func, args, kwds = task try: result = (True, func(*args, **kwds)) - except Exception as e: + except BaseException as e: if wrap_exception and func is not _helper_reraises_exception: e = ExceptionWithTraceback(e, e.__traceback__) result = (False, e) diff --git a/py3.11/multiprocess/pool.py b/py3.11/multiprocess/pool.py index 961d7e5..07febc0 100644 --- a/py3.11/multiprocess/pool.py +++ b/py3.11/multiprocess/pool.py @@ -123,7 +123,7 @@ def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None, job, i, func, args, kwds = task try: result = (True, func(*args, **kwds)) - except Exception as e: + except BaseException as e: if wrap_exception and func is not _helper_reraises_exception: e = ExceptionWithTraceback(e, e.__traceback__) result = (False, e) diff --git a/py3.12/multiprocess/pool.py b/py3.12/multiprocess/pool.py index 4f5d88c..d2d4e00 100644 --- a/py3.12/multiprocess/pool.py +++ b/py3.12/multiprocess/pool.py @@ -123,7 +123,7 @@ def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None, job, i, func, args, kwds = task try: result = (True, func(*args, **kwds)) - except Exception as e: + except BaseException as e: if wrap_exception and func is not _helper_reraises_exception: e = ExceptionWithTraceback(e, e.__traceback__) result = (False, e) diff --git a/py3.13/multiprocess/pool.py b/py3.13/multiprocess/pool.py index f979890..ec97207 100644 --- a/py3.13/multiprocess/pool.py +++ b/py3.13/multiprocess/pool.py @@ -123,7 +123,7 @@ def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None, job, i, func, args, kwds = task try: result = (True, func(*args, **kwds)) - except Exception as e: + except BaseException as e: if wrap_exception and func is not _helper_reraises_exception: e = ExceptionWithTraceback(e, e.__traceback__) result = (False, e) diff --git a/py3.14/multiprocess/pool.py b/py3.14/multiprocess/pool.py index f979890..ec97207 100644 --- a/py3.14/multiprocess/pool.py +++ b/py3.14/multiprocess/pool.py @@ -123,7 +123,7 @@ def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None, job, i, func, args, kwds = task try: result = (True, func(*args, **kwds)) - except Exception as e: + except BaseException as e: if wrap_exception and func is not _helper_reraises_exception: e = ExceptionWithTraceback(e, e.__traceback__) result = (False, e) diff --git a/py3.9/multiprocess/pool.py b/py3.9/multiprocess/pool.py index bbe05a5..55a51cb 100644 --- a/py3.9/multiprocess/pool.py +++ b/py3.9/multiprocess/pool.py @@ -123,7 +123,7 @@ def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None, job, i, func, args, kwds = task try: result = (True, func(*args, **kwds)) - except Exception as e: + except BaseException as e: if wrap_exception and func is not _helper_reraises_exception: e = ExceptionWithTraceback(e, e.__traceback__) result = (False, e) diff --git a/pypy3.10/multiprocess/pool.py b/pypy3.10/multiprocess/pool.py index 961d7e5..07febc0 100644 --- a/pypy3.10/multiprocess/pool.py +++ b/pypy3.10/multiprocess/pool.py @@ -123,7 +123,7 @@ def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None, job, i, func, args, kwds = task try: result = (True, func(*args, **kwds)) - except Exception as e: + except BaseException as e: if wrap_exception and func is not _helper_reraises_exception: e = ExceptionWithTraceback(e, e.__traceback__) result = (False, e) diff --git a/pypy3.11/multiprocess/pool.py b/pypy3.11/multiprocess/pool.py index 961d7e5..07febc0 100644 --- a/pypy3.11/multiprocess/pool.py +++ b/pypy3.11/multiprocess/pool.py @@ -123,7 +123,7 @@ def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None, job, i, func, args, kwds = task try: result = (True, func(*args, **kwds)) - except Exception as e: + except BaseException as e: if wrap_exception and func is not _helper_reraises_exception: e = ExceptionWithTraceback(e, e.__traceback__) result = (False, e) diff --git a/pypy3.9/multiprocess/pool.py b/pypy3.9/multiprocess/pool.py index bbe05a5..55a51cb 100644 --- a/pypy3.9/multiprocess/pool.py +++ b/pypy3.9/multiprocess/pool.py @@ -123,7 +123,7 @@ def worker(inqueue, outqueue, initializer=None, initargs=(), maxtasks=None, job, i, func, args, kwds = task try: result = (True, func(*args, **kwds)) - except Exception as e: + except BaseException as e: if wrap_exception and func is not _helper_reraises_exception: e = ExceptionWithTraceback(e, e.__traceback__) result = (False, e)