Use GrampsCursor as a context manager using "with" statement
svn: r12672
This commit is contained in:
@@ -399,7 +399,7 @@ class Callback(object):
|
||||
try:
|
||||
if isinstance(fn, types.FunctionType) or \
|
||||
isinstance(fn, types.MethodType): # call func
|
||||
fn(*args)
|
||||
fn(*args)
|
||||
else:
|
||||
self._warn("Badly formed entry in callback map.\n")
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user