Better handling of date exceptions

svn: r615
This commit is contained in:
Don Allingham 2001-12-14 13:50:57 +00:00
parent bdcb8bfad7
commit 1e66f540b9

View File

@ -376,21 +376,21 @@ class SingleDate:
try:
val = int(s)
self.month = val - 1
except ValueError:
except:
self.month = UNDEF
def setDayVal(self,s):
try:
val = int(s)
self.day = val
except ValueError:
except:
self.day = UNDEF
def setYearVal(self,s):
try:
val = int(s)
self.year = val
except ValueError:
except:
self.year = UNDEF
def getMonth(self):