From 8537ff4cd6cb7b30561809e6762d532885d888c3 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 5 Mar 2025 09:49:13 -0500 Subject: [PATCH] Unpack errors from `pdb.bdb` Like any `bdb.BdbQuit` that might be relayed from a remote context after a REPl exit with the `quit` cmd. This fixes various issues while debugging where it may not be clear to the parent task that the child was terminated with a purposefully unrecoverable error. --- tractor/_exceptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tractor/_exceptions.py b/tractor/_exceptions.py index f90df5f..249ea16 100644 --- a/tractor/_exceptions.py +++ b/tractor/_exceptions.py @@ -22,6 +22,7 @@ from __future__ import annotations import builtins import importlib from pprint import pformat +from pdb import bdb import sys from types import ( TracebackType, @@ -181,6 +182,7 @@ def get_err_type(type_name: str) -> BaseException|None: builtins, _this_mod, trio, + bdb, ]: if type_ref := getattr( ns,