From b3f46c68c7d2556df1ae5965a51f1eed88c8815f Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 14 Dec 2001 13:50:57 +0000 Subject: [PATCH] Better handling of date exceptions svn: r615 --- src/Date.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Date.py b/src/Date.py index 714f0400c..c8a5a280a 100644 --- a/src/Date.py +++ b/src/Date.py @@ -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):