_Tool.py: Pythonic style change in try...except...else
svn: r12611
This commit is contained in:
@@ -86,10 +86,11 @@ class Tool(object):
|
|||||||
if issubclass(options_class, MenuToolOptions):
|
if issubclass(options_class, MenuToolOptions):
|
||||||
# FIXME: pass in person_id
|
# FIXME: pass in person_id
|
||||||
self.options = options_class(name, None, dbstate)
|
self.options = options_class(name, None, dbstate)
|
||||||
else: # must be some kind of class or we get a TypeError
|
|
||||||
self.options = options_class(name)
|
|
||||||
except TypeError:
|
except TypeError:
|
||||||
self.options = options_class
|
self.options = options_class
|
||||||
|
else: # must be some kind of class or we get a TypeError
|
||||||
|
self.options = options_class(name)
|
||||||
|
|
||||||
self.options.load_previous_values()
|
self.options.load_previous_values()
|
||||||
|
|
||||||
def run_tool(self):
|
def run_tool(self):
|
||||||
|
Reference in New Issue
Block a user