217 return |
217 return |
218 try: |
218 try: |
219 f = open(fname, 'rb') |
219 f = open(fname, 'rb') |
220 self.stats = pickle.load(f) |
220 self.stats = pickle.load(f) |
221 f.close() |
221 f.close() |
222 except (EnvironmentError, pickle.PickleError): |
222 except (EnvironmentError, pickle.PickleError, EOFError): |
223 E5MessageBox.critical(self, |
223 E5MessageBox.critical(self, |
224 self.trUtf8("Loading Profiling Data"), |
224 self.trUtf8("Loading Profiling Data"), |
225 self.trUtf8("""<p>The profiling data could not be""" |
225 self.trUtf8("""<p>The profiling data could not be""" |
226 """ read from file <b>{0}</b>.</p>""") |
226 """ read from file <b>{0}</b>.</p>""") |
227 .format(fname)) |
227 .format(fname)) |