mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-07 00:48:41 +00:00
Fix #415 crash when using 'config-set' with no parameters
This commit is contained in:
parent
8c6a7a86c1
commit
d2e5f157fa
1 changed files with 5 additions and 1 deletions
|
@ -214,7 +214,11 @@ class CommandConfig(Command):
|
||||||
|
|
||||||
class CommandConfigSet(Command):
|
class CommandConfigSet(Command):
|
||||||
def execute(self, cmd):
|
def execute(self, cmd):
|
||||||
key = cmd[1]
|
try:
|
||||||
|
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…
Add table
Add a link
Reference in a new issue