Bug on try, except, finally statement with python 2.4 fixed
authorlbessard
Thu, 17 Jan 2008 11:50:51 +0100
changeset 359 346435b94063
parent 358 4630ccf4932a
child 360 09af3515dd42
Bug on try, except, finally statement with python 2.4 fixed
objdictgen/commondialogs.py
--- a/objdictgen/commondialogs.py	Tue Jan 15 10:49:35 2008 +0100
+++ b/objdictgen/commondialogs.py	Thu Jan 17 11:50:51 2008 +0100
@@ -22,6 +22,7 @@
 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 import wx
+import wx.grid
 
 import os
 
@@ -1484,9 +1485,8 @@
             message = wx.MessageDialog(self, "\"%s\" is not a valid value!"%value, "Error", wx.OK|wx.ICON_ERROR)
             message.ShowModal()
             message.Destroy()
-        finally:
-            wx.CallAfter(self.RefreshValues)
-            event.Skip()
+        wx.CallAfter(self.RefreshValues)
+        event.Skip()
     
     def OnValuesGridSelectCell(self, event):
         wx.CallAfter(self.RefreshButtons)