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 bba9c1a54f
commit 7b31434287
2 changed files with 9 additions and 2 deletions

View file

@ -10,7 +10,10 @@ Deluge 0.9.07 - "1.0.0_RC7" (In Development)
* Fix hiding the bottom pane when disabling all the tabs
* Fix not showing new torrents if you don't use the All label first
* Fix size units to be more accurate
Null:
* Fix #415 crash when using 'config-set' with no parameters
Windows:
* Fix Vista slowness issue
* Fix properly shutting Deluge down when system shuts down

View file

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