DataViews/PyProfileDialog.py

branch
5_1_x
changeset 983
7261d8565a50
parent 791
9ec2ac20e54e
child 1510
e75ecf2bd9dd
equal deleted inserted replaced
980:7626b3605b2d 983:7261d8565a50
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))

eric ide

mercurial