Modified callHooks to work when wrapping methods with no docstrings.

This commit is contained in:
Dave Marchant
2013-12-18 16:15:01 -08:00
parent 93b077a4b7
commit da0a0d3dd3
+4 -2
View File
@@ -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