dabo Commit
Revision 4207
Date: 2008-06-27 17:30:46 -0700 (Fri, 27 Jun 2008)
Author: Ed
Trac: http://svn.dabodev.com/trac/dabo/changeset/4207

Changed:
U   trunk/dabo/lib/datanav2/Form.py

Log:
Corrected the exception handling.


Diff:
Modified: trunk/dabo/lib/datanav2/Form.py
===================================================================
--- trunk/dabo/lib/datanav2/Form.py     2008-06-27 23:05:02 UTC (rev 4206)
+++ trunk/dabo/lib/datanav2/Form.py     2008-06-28 00:30:46 UTC (rev 4207)
@@ -255,9 +255,13 @@
                        currPage = self.pageFrame.SelectedPage
                        self.pageFrame.unbindEvent()
                        self.pageFrame.release()
-                       del self.__dict__["PageFrame"]
-               except KeyError: pass
-               
+                       try:
+                               del self.__dict__["PageFrame"]
+                       except KeyError:
+                               pass
+               except AttributeError:
+                       pass
+                       
                if self.beforeSetupPageFrame():
                        self.pageFrame = PageFrame.PageFrame(self, 
tabStyle=self.PageFrameStyle,
                                        TabPosition=self.PageTabPosition)




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to