Skip to content

Commit

Permalink
extend apport excepthook detection to also detect partial_apport_exce…
Browse files Browse the repository at this point in the history
…pthook (#2838)
  • Loading branch information
jakkdl authored Oct 30, 2023
1 parent 12e2da8 commit d7c5c64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions trio/_core/_multierror.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d7c5c64

Please sign in to comment.