Backed out exception handing. Pass up to next level

svn: r10
This commit is contained in:
Don Allingham 2001-05-14 23:51:22 +00:00
parent a9347ae96c
commit 39a550d779

View File

@ -61,20 +61,11 @@ class Date:
match = Date.fmt.match(text) match = Date.fmt.match(text)
if match: if match:
matches = match.groups() matches = match.groups()
try: self.start.set(matches[1])
self.start.set(matches[1]) self.stop.set(matches[3])
except:
pass
try:
self.stop.set(matches[3])
except:
pass
self.range = 1 self.range = 1
else: else:
try: self.start.set(text)
self.start.set(text)
except:
pass
self.range = 0 self.range = 0
#-------------------------------------------------------------------- #--------------------------------------------------------------------
@ -111,20 +102,11 @@ class Date:
match = Date.fmt.match(text) match = Date.fmt.match(text)
if match: if match:
matches = match.groups() matches = match.groups()
try: self.start.set(matches[1])
self.start.set(matches[1]) self.stop.set(matches[3])
except:
pass
try:
self.stop.set(matches[3])
except:
pass
self.range = 1 self.range = 1
else: else:
try: self.start.quick_set(text)
self.start.quick_set(text)
except:
pass
self.range = 0 self.range = 0
#------------------------------------------------------------------------- #-------------------------------------------------------------------------