--- 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"):