Backed out exception handing. Pass up to next level
svn: r10
This commit is contained in:
parent
a9347ae96c
commit
39a550d779
@ -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])
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
self.stop.set(matches[3])
|
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])
|
||||||
except:
|
|
||||||
pass
|
|
||||||
try:
|
|
||||||
self.stop.set(matches[3])
|
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
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user