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