Little change to the code to make an 'if' statement clearer. eric7

Wed, 07 Sep 2022 15:55:49 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 07 Sep 2022 15:55:49 +0200
branch
eric7
changeset 9315
79be00bfe50c
parent 9314
7ba79b00ea96
child 9316
53ab4cd68b5b

Little change to the code to make an 'if' statement clearer.

src/eric7/Debugger/DebugUI.py file | annotate | diff | comparison | revisions
diff -r 7ba79b00ea96 -r 79be00bfe50c src/eric7/Debugger/DebugUI.py
--- a/src/eric7/Debugger/DebugUI.py	Tue Sep 06 15:08:41 2022 +0200
+++ b/src/eric7/Debugger/DebugUI.py	Wed Sep 07 15:55:49 2022 +0200
@@ -1451,10 +1451,7 @@
         if (
             self.exceptions
             and exceptionType not in self.excIgnoreList
-            and (
-                not len(self.excList)
-                or (len(self.excList) and exceptionType in self.excList)
-            )
+            and (len(self.excList) == 0 or exceptionType in self.excList)
         ) or (self.unhandledExceptions and exceptionType.startswith("unhandled")):
             res = None
             if stackTrace:

eric ide

mercurial