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