mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +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)
|
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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user