Fixed an issue in the PyProfile dialog (forgot to catch EOFError exception). 5_1_x

Fri, 15 Apr 2011 18:23:39 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 15 Apr 2011 18:23:39 +0200
branch
5_1_x
changeset 983
7261d8565a50
parent 980
7626b3605b2d
child 985
749cdce86824

Fixed an issue in the PyProfile dialog (forgot to catch EOFError exception).

DataViews/PyProfileDialog.py file | annotate | diff | comparison | revisions
--- 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