From 9920902f1846498ae9f4791a8d285bceaaf099f6 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 11 Mar 2003 19:45:41 +0000 Subject: [PATCH] Patch from Will Sadkin for dealing with emoty values git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/wxPython/lib/timectrl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxPython/wxPython/lib/timectrl.py b/wxPython/wxPython/lib/timectrl.py index 322e68a4b8..52d9c4b4fc 100644 --- a/wxPython/wxPython/lib/timectrl.py +++ b/wxPython/wxPython/lib/timectrl.py @@ -138,7 +138,7 @@ class wxTimeCtrl(wxTextCtrl): # Validate initial value and set if appropriate try: self.SetValue(value) - except ValueError: + except: self.SetValue('12:00:00 AM') # set initial position and selection state