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):
|
||||
def execute(self, cmd):
|
||||
key = cmd[1]
|
||||
try:
|
||||
key = cmd[1]
|
||||
except IndexError:
|
||||
self.usage()
|
||||
return
|
||||
|
||||
# Returns (correct_type, type_value)
|
||||
def convert_type(target, source):
|
||||
|
|
Loading…
Reference in New Issue