183 itm = self.topLevelItem(0) |
183 itm = self.topLevelItem(0) |
184 while itm is not None: |
184 while itm is not None: |
185 f.write("{0}\n".format(itm.text(0))) |
185 f.write("{0}\n".format(itm.text(0))) |
186 f.write(78 * "=" + "\n") |
186 f.write(78 * "=" + "\n") |
187 itm = self.itemBelow(itm) |
187 itm = self.itemBelow(itm) |
188 except IOError as err: |
188 except OSError as err: |
189 E5MessageBox.critical( |
189 E5MessageBox.critical( |
190 self, |
190 self, |
191 self.tr("Error saving Call Stack Info"), |
191 self.tr("Error saving Call Stack Info"), |
192 self.tr("""<p>The call stack info could not be""" |
192 self.tr("""<p>The call stack info could not be""" |
193 """ written to <b>{0}</b></p>""" |
193 """ written to <b>{0}</b></p>""" |