108 0, self.tr('{0}: An unhandled exception occured.' |
108 0, self.tr('{0}: An unhandled exception occured.' |
109 ' See the shell window for details.') |
109 ' See the shell window for details.') |
110 .format(debuggerId)) |
110 .format(debuggerId)) |
111 return |
111 return |
112 |
112 |
113 if not exceptionMessage: |
113 text = ( |
114 text = self.tr("{0}: {1}").format( |
114 self.tr("{0}: {1}").format(debuggerId, exceptionType) |
115 debuggerId, exceptionType) |
115 if not exceptionMessage else |
116 else: |
116 self.tr("{0}: {1}, {2}").format(debuggerId, exceptionType, |
117 text = self.tr("{0}: {1}, {2}").format( |
117 exceptionMessage) |
118 debuggerId, exceptionType, exceptionMessage) |
118 ) |
119 |
119 |
120 itm.setText(0, text) |
120 itm.setText(0, text) |
121 itm.setToolTip(0, text) |
121 itm.setToolTip(0, text) |
122 |
122 |
123 # now add the call stack, most recent call first |
123 # now add the call stack, most recent call first |