eric6/Debugger/ExceptionLogger.py

changeset 8257
28146736bbfc
parent 8243
cc717c2ae956
child 8273
698ae46f40a4
--- a/eric6/Debugger/ExceptionLogger.py	Tue Apr 20 19:38:10 2021 +0200
+++ b/eric6/Debugger/ExceptionLogger.py	Tue Apr 20 19:47:39 2021 +0200
@@ -110,12 +110,12 @@
                 .format(debuggerId))
             return
         
-        if not exceptionMessage:
-            text = self.tr("{0}: {1}").format(
-                debuggerId, exceptionType)
-        else:
-            text = self.tr("{0}: {1}, {2}").format(
-                debuggerId, exceptionType, exceptionMessage)
+        text = (
+            self.tr("{0}: {1}").format(debuggerId, exceptionType)
+            if not exceptionMessage else
+            self.tr("{0}: {1}, {2}").format(debuggerId, exceptionType,
+                                            exceptionMessage)
+        )
         
         itm.setText(0, text)
         itm.setToolTip(0, text)

eric ide

mercurial