mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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.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 not isinstance(self.irc, irclib.Irc):
|
||||
self.irc.error(s, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user