mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Give the original error a Raise argument.
This commit is contained in:
parent
752ae6325e
commit
547137dc1c
@ -704,7 +704,12 @@ class IrcObjectProxy(RichReplyMethods):
|
|||||||
self.args[self.counter] = s
|
self.args[self.counter] = s
|
||||||
self.evalArgs()
|
self.evalArgs()
|
||||||
|
|
||||||
def error(self, s='', **kwargs):
|
def error(self, s='', Raise=False, **kwargs):
|
||||||
|
if Raise:
|
||||||
|
if s:
|
||||||
|
raise Error, s
|
||||||
|
else:
|
||||||
|
raise ArgumentError
|
||||||
if s:
|
if s:
|
||||||
if not isinstance(self.irc, irclib.Irc):
|
if not isinstance(self.irc, irclib.Irc):
|
||||||
self.irc.error(s, **kwargs)
|
self.irc.error(s, **kwargs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user