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