--- a/src/eric7/DebugClients/Python/DebugVariables.py Wed Nov 02 10:12:25 2022 +0100 +++ b/src/eric7/DebugClients/Python/DebugVariables.py Wed Nov 02 12:07:01 2022 +0100 @@ -52,7 +52,7 @@ """ d = [] for name in dir(var): - with contextlib.suppress(Exception): + with contextlib.suppress(AttributeError): attribute = getattr(var, name) d.append((name, attribute)) @@ -81,7 +81,7 @@ """ d = [] for name in dir(var): - with contextlib.suppress(Exception): + with contextlib.suppress(AttributeError): attribute = getattr(var, name) d.append((name, attribute)) @@ -661,9 +661,9 @@ """ d = [] attributes = () - # Gently handle exception which could occure as special - # cases, e.g. already deleted C++ objects, str conversion.. - with contextlib.suppress(Exception): + # Gently handle exception which could occur as special + # cases, e.g. already deleted C++ objects, str conversion... + with contextlib.suppress(Exception): # secok qttype = type(var).__name__ if qttype in ("QLabel", "QPushButton"):