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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 15 Apr 2011 18:23:15 +0200
changeset 982
a1abe3018d04
parent 981
8217c9d312c3
child 984
f4bddd7cf51e

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:47 2011 +0200
+++ b/DataViews/PyProfileDialog.py	Fri Apr 15 18:23:15 2011 +0200
@@ -221,7 +221,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"""

eric ide

mercurial