Fix #415 crash when using 'config-set' with no parameters
This commit is contained in:
parent
8c6a7a86c1
commit
d2e5f157fa
|
@ -214,7 +214,11 @@ class CommandConfig(Command):
|
||||||
|
|
||||||
class CommandConfigSet(Command):
|
class CommandConfigSet(Command):
|
||||||
def execute(self, cmd):
|
def execute(self, cmd):
|
||||||
|
try:
|
||||||
key = cmd[1]
|
key = cmd[1]
|
||||||
|
except IndexError:
|
||||||
|
self.usage()
|
||||||
|
return
|
||||||
|
|
||||||
# Returns (correct_type, type_value)
|
# Returns (correct_type, type_value)
|
||||||
def convert_type(target, source):
|
def convert_type(target, source):
|
||||||
|
|
Loading…
Reference in New Issue