Issue #22614: Don't try to update deleted text. Patch by Serhiy Storchaka.
authorTerry Jan Reedy <tjreedy@udel.edu>
Mon, 13 Oct 2014 02:58:47 +0000 (22:58 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Mon, 13 Oct 2014 02:58:47 +0000 (22:58 -0400)
Lib/idlelib/PyShell.py

index 514aee6fabd5996cbf51e73b05c8585cb8a3f3af..6b439885b27cce463b675764226ce7be0bd17345 100755 (executable)
@@ -151,6 +151,9 @@ class PyShellEditorWindow(EditorWindow):
 
     def color_breakpoint_text(self, color=True):
         "Turn colorizing of breakpoint text on or off"
+        if self.io is None:
+            # possible due to update in restore_file_breaks
+            return
         if color:
             theme = idleConf.GetOption('main','Theme','name')
             cfg = idleConf.GetHighlight(theme, "break")