--- a/src/eric7/UI/PythonDisViewer.py Thu Oct 10 17:16:25 2024 +0200 +++ b/src/eric7/UI/PythonDisViewer.py Thu Oct 10 17:21:46 2024 +0200 @@ -910,7 +910,7 @@ except SyntaxError: return [] - starts = [inst[1] for inst in dis.findlinestarts(co) if inst is not None] + starts = [inst[1] for inst in dis.findlinestarts(co) if inst[1] is not None] if getall: for x in co.co_consts: if hasattr(x, "co_code"):