Fixed a little issue in DebugUI.

Tue, 04 Sep 2012 11:41:07 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 04 Sep 2012 11:41:07 +0200
changeset 2021
337b5b77070f
parent 2018
63a74664016d
child 2023
6636ca1adc33

Fixed a little issue in DebugUI.

Debugger/DebugUI.py file | annotate | diff | comparison | revisions
--- a/Debugger/DebugUI.py	Mon Sep 03 09:42:12 2012 +0200
+++ b/Debugger/DebugUI.py	Tue Sep 04 11:41:07 2012 +0200
@@ -1022,7 +1022,8 @@
                     file, line = stackTrace[0]
                     source, encoding = Utilities.readEncodedFile(file)
                     source = source.splitlines(True)
-                    if "__IGNORE_EXCEPTION__" in Utilities.extractLineFlags(
+                    if len(source) >= line and \
+                       "__IGNORE_EXCEPTION__" in Utilities.extractLineFlags(
                             source[line - 1]):
                         res = E5MessageBox.No
                 except (UnicodeError, IOError):

eric ide

mercurial