From 39a550d779ae1ddbfbbc91704234571718051629 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Mon, 14 May 2001 23:51:22 +0000 Subject: [PATCH] Backed out exception handing. Pass up to next level svn: r10 --- gramps/src/Date.py | 30 ++++++------------------------ 1 file changed, 6 insertions(+), 24 deletions(-) diff --git a/gramps/src/Date.py b/gramps/src/Date.py index a611a945a..e93266415 100644 --- a/gramps/src/Date.py +++ b/gramps/src/Date.py @@ -61,20 +61,11 @@ class Date: match = Date.fmt.match(text) if match: matches = match.groups() - try: - self.start.set(matches[1]) - except: - pass - try: - self.stop.set(matches[3]) - except: - pass + self.start.set(matches[1]) + self.stop.set(matches[3]) self.range = 1 else: - try: - self.start.set(text) - except: - pass + self.start.set(text) self.range = 0 #-------------------------------------------------------------------- @@ -111,20 +102,11 @@ class Date: match = Date.fmt.match(text) if match: matches = match.groups() - try: - self.start.set(matches[1]) - except: - pass - try: - self.stop.set(matches[3]) - except: - pass + self.start.set(matches[1]) + self.stop.set(matches[3]) self.range = 1 else: - try: - self.start.quick_set(text) - except: - pass + self.start.quick_set(text) self.range = 0 #-------------------------------------------------------------------------