From d7c5c64fe15783821b8d516dd9bd89cda2d0ed6c Mon Sep 17 00:00:00 2001 From: John Litborn <11260241+jakkdl@users.noreply.github.com> Date: Mon, 30 Oct 2023 15:53:15 +0100 Subject: [PATCH] extend apport excepthook detection to also detect partial_apport_excepthook (#2838) --- trio/_core/_multierror.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trio/_core/_multierror.py b/trio/_core/_multierror.py index 18ac954471..cd839e0b4a 100644 --- a/trio/_core/_multierror.py +++ b/trio/_core/_multierror.py @@ -476,9 +476,9 @@ def concat_tb( # hook. # # More details: https://github.com/python-trio/trio/issues/1065 -if ( - sys.version_info < (3, 11) - and getattr(sys.excepthook, "__name__", None) == "apport_excepthook" +if sys.version_info < (3, 11) and getattr(sys.excepthook, "__name__", None) in ( + "apport_excepthook", + "partial_apport_excepthook", ): from types import ModuleType