src/eric7/DebugClients/Python/DebugBase.py

branch
eric7
changeset 9462
e65379fdbd97
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
--- a/src/eric7/DebugClients/Python/DebugBase.py	Wed Nov 02 10:12:25 2022 +0100
+++ b/src/eric7/DebugClients/Python/DebugBase.py	Wed Nov 02 12:07:01 2022 +0100
@@ -167,7 +167,7 @@
             cf = cf.f_back
             frmnr -= 1
 
-        with contextlib.suppress(Exception):
+        with contextlib.suppress(ImportError, AttributeError):
             if "__pypy__" in sys.builtin_module_names:
                 import __pypy__
 

eric ide

mercurial