From 1e66f540b96c35541756941f40c7c034e4cf8194 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 --- gramps/src/Date.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gramps/src/Date.py b/gramps/src/Date.py index 714f0400c..c8a5a280a 100644 --- a/gramps/src/Date.py +++ b/gramps/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):