diff -r 0f70a4ef4592 -r 6cf1ee737d8f src/eric7/DebugClients/Python/DebugVariables.py --- a/src/eric7/DebugClients/Python/DebugVariables.py Tue Aug 29 16:55:18 2023 +0200 +++ b/src/eric7/DebugClients/Python/DebugVariables.py Tue Aug 29 17:48:25 2023 +0200 @@ -52,11 +52,9 @@ """ d = [] for name in dir(var): - try: + with contextlib.suppress(AttributeError): attribute = getattr(var, name) - except Exception: - continue - d.append((name, attribute)) + d.append((name, attribute)) return d @@ -83,11 +81,9 @@ """ d = [] for name in dir(var): - try: + with contextlib.suppress(AttributeError): attribute = getattr(var, name) - except Exception: - continue - d.append((name, attribute)) + d.append((name, attribute)) yield -1, d while True: