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