Give the original error a Raise argument.

This commit is contained in:
Jeremy Fincher 2004-08-24 14:03:24 +00:00
parent 752ae6325e
commit 547137dc1c

View File

@ -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)