mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 02:49:27 +01:00
Improve decorator.
This commit is contained in:
parent
4acb692f17
commit
b9b36d4de5
@ -135,8 +135,7 @@ def catch_web_errors(f):
|
||||
f(self, irc, *args, **kwargs)
|
||||
except utils.web.Error as e:
|
||||
irc.reply(str(e))
|
||||
newf.__doc__ = f.__doc__
|
||||
return newf
|
||||
return utils.python.changeFunctionName(newf, f.__name__, f.__doc__)
|
||||
|
||||
class Web(callbacks.PluginRegexp):
|
||||
"""Add the help for "@help Web" here."""
|
||||
|
Loading…
Reference in New Issue
Block a user