204 if fpath.exists(): |
204 if fpath.exists(): |
205 res = EricMessageBox.yesNo( |
205 res = EricMessageBox.yesNo( |
206 self, |
206 self, |
207 self.tr("Save Call Stack Info"), |
207 self.tr("Save Call Stack Info"), |
208 self.tr("<p>The file <b>{0}</b> already exists." |
208 self.tr("<p>The file <b>{0}</b> already exists." |
209 " Overwrite it?</p>").format(str(fpath)), |
209 " Overwrite it?</p>").format(fpath), |
210 icon=EricMessageBox.Warning) |
210 icon=EricMessageBox.Warning) |
211 if not res: |
211 if not res: |
212 return |
212 return |
213 |
213 |
214 try: |
214 try: |
227 self, |
227 self, |
228 self.tr("Error saving Call Stack Info"), |
228 self.tr("Error saving Call Stack Info"), |
229 self.tr("""<p>The call stack info could not be""" |
229 self.tr("""<p>The call stack info could not be""" |
230 """ written to <b>{0}</b></p>""" |
230 """ written to <b>{0}</b></p>""" |
231 """<p>Reason: {1}</p>""") |
231 """<p>Reason: {1}</p>""") |
232 .format(str(fpath), str(err))) |
232 .format(fpath, str(err))) |