DataViews/PyProfileDialog.py

changeset 982
a1abe3018d04
parent 945
8cd4d08fa9f6
child 1112
8a7d1b9d18db
equal deleted inserted replaced
981:8217c9d312c3 982:a1abe3018d04
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))

eric ide

mercurial