From e49cccf66620aa6cd4f2079cd195aa732a2ef063 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 16 Feb 2022 13:07:21 -0500 Subject: [PATCH] Avoid attr error XD --- tractor/_debug.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tractor/_debug.py b/tractor/_debug.py index c857b84..cd6bd61 100644 --- a/tractor/_debug.py +++ b/tractor/_debug.py @@ -49,7 +49,8 @@ try: except ImportError: # pdbpp is installed in regular mode...it monkey patches stuff import pdb - assert pdb.xpm, "pdbpp is not installed?" # type: ignore + xpm = getattr(pdb, 'xpm', None) + assert xpm, "pdbpp is not installed?" # type: ignore pdbpp = pdb log = get_logger(__name__)