mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-27 05:21:09 -05:00
Fixed IrcObjectProxy.finalEval to give help in the face of an empty Error exception (like that raised by privmsgs.getArgs)
This commit is contained in:
parent
406b263444
commit
f97ab0d0b9
@ -234,10 +234,13 @@ class IrcObjectProxy:
|
|||||||
if callback is None:
|
if callback is None:
|
||||||
self.args.insert(0, name)
|
self.args.insert(0, name)
|
||||||
self.reply(self.msg, '[%s]' % ' '.join(self.args))
|
self.reply(self.msg, '[%s]' % ' '.join(self.args))
|
||||||
callback.callCommand(getattr(callback, name),
|
command = getattr(callback, name)
|
||||||
self, self.msg, self.args)
|
callback.callCommand(command, self, self.msg, self.args)
|
||||||
except Error, e:
|
except Error, e:
|
||||||
self.reply(self.msg, debug.exnToString(e))
|
if str(e) == '':
|
||||||
|
self.reply(self.msg, command.__doc__.splitlines()[0])
|
||||||
|
else:
|
||||||
|
self.reply(self.msg, debug.exnToString(e))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
debug.recoverableException()
|
debug.recoverableException()
|
||||||
self.reply(self.msg, debug.exnToString(e))
|
self.reply(self.msg, debug.exnToString(e))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user