Fix #415 crash when using 'config-set' with no parameters

This commit is contained in:
Andrew Resch 2008-08-17 18:06:08 +00:00
parent 8c6a7a86c1
commit d2e5f157fa
1 changed files with 5 additions and 1 deletions

View File

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