Better handling of date exceptions
svn: r615
This commit is contained in:
parent
55501e0379
commit
b3f46c68c7
@ -376,21 +376,21 @@ class SingleDate:
|
|||||||
try:
|
try:
|
||||||
val = int(s)
|
val = int(s)
|
||||||
self.month = val - 1
|
self.month = val - 1
|
||||||
except ValueError:
|
except:
|
||||||
self.month = UNDEF
|
self.month = UNDEF
|
||||||
|
|
||||||
def setDayVal(self,s):
|
def setDayVal(self,s):
|
||||||
try:
|
try:
|
||||||
val = int(s)
|
val = int(s)
|
||||||
self.day = val
|
self.day = val
|
||||||
except ValueError:
|
except:
|
||||||
self.day = UNDEF
|
self.day = UNDEF
|
||||||
|
|
||||||
def setYearVal(self,s):
|
def setYearVal(self,s):
|
||||||
try:
|
try:
|
||||||
val = int(s)
|
val = int(s)
|
||||||
self.year = val
|
self.year = val
|
||||||
except ValueError:
|
except:
|
||||||
self.year = UNDEF
|
self.year = UNDEF
|
||||||
|
|
||||||
def getMonth(self):
|
def getMonth(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user