mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-23 04:54:51 +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):
|
||||
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…
Add table
Reference in a new issue