Try to trap a bug
svn: r174
This commit is contained in:
@ -355,6 +355,10 @@ class SingleDate:
|
||||
#
|
||||
#--------------------------------------------------------------------
|
||||
def setMonth(self,val):
|
||||
if val > 12:
|
||||
self.month = -1
|
||||
print "Bad month index : %d" % val
|
||||
else:
|
||||
self.month = val - 1
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user