mirror of
https://github.com/wassname/simpeg.git
synced 2026-07-09 12:00:16 +08:00
Modified callHooks to work when wrapping methods with no docstrings.
This commit is contained in:
@@ -119,8 +119,10 @@ def callHooks(match):
|
||||
Where the * can be any string. If present, _%s* will be called at the start of the default %s call.
|
||||
You may also completely overwrite this function.
|
||||
""" % (match, match, match, match)
|
||||
|
||||
wrapper.__doc__ += extra
|
||||
try:
|
||||
wrapper.__doc__ += extra
|
||||
except Exception, e:
|
||||
pass
|
||||
return wrapper
|
||||
return callHooksWrap
|
||||
|
||||
|
||||
Reference in New Issue
Block a user