mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
oops. Forgot to Raise=True of course, that wouldn't be a problem if the
exception was properly being caught in callCommand
This commit is contained in:
parent
d3d2ff8006
commit
cb23a47635
@ -138,7 +138,7 @@ class Config(callbacks.Privmsg):
|
|||||||
try:
|
try:
|
||||||
L = self._list(name)
|
L = self._list(name)
|
||||||
except InvalidRegistryName, e:
|
except InvalidRegistryName, e:
|
||||||
irc.errorInvalid('configuration variable', e.args[0])
|
irc.errorInvalid('configuration variable', e.args[0], Raise=True)
|
||||||
if L:
|
if L:
|
||||||
irc.reply(utils.commaAndify(L))
|
irc.reply(utils.commaAndify(L))
|
||||||
else:
|
else:
|
||||||
@ -175,7 +175,7 @@ class Config(callbacks.Privmsg):
|
|||||||
else:
|
else:
|
||||||
self._get(irc, msg, args)
|
self._get(irc, msg, args)
|
||||||
except InvalidRegistryName, e:
|
except InvalidRegistryName, e:
|
||||||
irc.errorInvalid('configuration variable', e.args[0])
|
irc.errorInvalid('configuration variable', e.args[0], Raise=True)
|
||||||
|
|
||||||
def channel(self, irc, msg, args):
|
def channel(self, irc, msg, args):
|
||||||
"""[<channel>] <name> [<value>]
|
"""[<channel>] <name> [<value>]
|
||||||
@ -191,7 +191,7 @@ class Config(callbacks.Privmsg):
|
|||||||
try:
|
try:
|
||||||
wrapper = getWrapper(args[0])
|
wrapper = getWrapper(args[0])
|
||||||
except InvalidRegistryName, e:
|
except InvalidRegistryName, e:
|
||||||
irc.errorInvalid('configuration variable', e.args[0])
|
irc.errorInvalid('configuration variable', e.args[0], Raise=True)
|
||||||
if not wrapper.channelValue:
|
if not wrapper.channelValue:
|
||||||
irc.error('That configuration variable is not a channel-specific '
|
irc.error('That configuration variable is not a channel-specific '
|
||||||
'configuration variable.')
|
'configuration variable.')
|
||||||
@ -248,7 +248,7 @@ class Config(callbacks.Privmsg):
|
|||||||
try:
|
try:
|
||||||
wrapper = getWrapper(name)
|
wrapper = getWrapper(name)
|
||||||
except InvalidRegistryName, e:
|
except InvalidRegistryName, e:
|
||||||
irc.errorInvalid('configuration variable', e.args[0])
|
irc.errorInvalid('configuration variable', e.args[0], Raise=True)
|
||||||
if hasattr(wrapper, 'help'):
|
if hasattr(wrapper, 'help'):
|
||||||
s = wrapper.help
|
s = wrapper.help
|
||||||
if not wrapper._private:
|
if not wrapper._private:
|
||||||
@ -267,7 +267,7 @@ class Config(callbacks.Privmsg):
|
|||||||
try:
|
try:
|
||||||
wrapper = getWrapper(name)
|
wrapper = getWrapper(name)
|
||||||
except InvalidRegistryName, e:
|
except InvalidRegistryName, e:
|
||||||
irc.errorInvalid('configuration variable', e.args[0])
|
irc.errorInvalid('configuration variable', e.args[0], Raise=True)
|
||||||
v = wrapper.__class__(wrapper._default, '')
|
v = wrapper.__class__(wrapper._default, '')
|
||||||
irc.reply(str(v))
|
irc.reply(str(v))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user