src/eric7/UI/PythonDisViewer.py

branch
eric7
changeset 10963
895cff2305a7
parent 10692
9becf9ca115c
child 10964
3ce89f2d4729
--- a/src/eric7/UI/PythonDisViewer.py	Wed Oct 09 18:18:00 2024 +0200
+++ b/src/eric7/UI/PythonDisViewer.py	Thu Oct 10 17:16:25 2024 +0200
@@ -910,7 +910,7 @@
         except SyntaxError:
             return []
 
-    starts = [inst[1] for inst in dis.findlinestarts(co)]
+    starts = [inst[1] for inst in dis.findlinestarts(co) if inst is not None]
     if getall:
         for x in co.co_consts:
             if hasattr(x, "co_code"):

eric ide

mercurial