--- 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)