Improve decorator.

This commit is contained in:
Valentin Lorentz 2016-12-08 00:37:12 +01:00
parent 4acb692f17
commit b9b36d4de5

View File

@ -135,8 +135,7 @@ def catch_web_errors(f):
f(self, irc, *args, **kwargs) f(self, irc, *args, **kwargs)
except utils.web.Error as e: except utils.web.Error as e:
irc.reply(str(e)) irc.reply(str(e))
newf.__doc__ = f.__doc__ return utils.python.changeFunctionName(newf, f.__name__, f.__doc__)
return newf
class Web(callbacks.PluginRegexp): class Web(callbacks.PluginRegexp):
"""Add the help for "@help Web" here.""" """Add the help for "@help Web" here."""