DataViews/PyProfileDialog.py

branch
5_1_x
changeset 983
7261d8565a50
parent 791
9ec2ac20e54e
child 1510
e75ecf2bd9dd
--- a/DataViews/PyProfileDialog.py	Wed Apr 13 19:53:11 2011 +0200
+++ b/DataViews/PyProfileDialog.py	Fri Apr 15 18:23:39 2011 +0200
@@ -219,7 +219,7 @@
             f = open(fname, 'rb')
             self.stats = pickle.load(f)
             f.close()
-        except (EnvironmentError, pickle.PickleError):
+        except (EnvironmentError, pickle.PickleError, EOFError):
             E5MessageBox.critical(self,
                 self.trUtf8("Loading Profiling Data"),
                 self.trUtf8("""<p>The profiling data could not be"""
@@ -310,4 +310,4 @@
             self.exclude = True
             self.filterItm.setText(self.trUtf8('Exclude Python Library'))
             self.__populateLists(False)
-        self.__finish()
\ No newline at end of file
+        self.__finish()

eric ide

mercurial