From 7b314342873f1fa2b67c2f29d616133e1816626c Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Sun, 17 Aug 2008 18:06:08 +0000 Subject: [PATCH] Fix #415 crash when using 'config-set' with no parameters --- ChangeLog | 5 ++++- deluge/ui/null/deluge_shell.py | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 18a7b26d6..88a6a2144 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/deluge/ui/null/deluge_shell.py b/deluge/ui/null/deluge_shell.py index ab3797fde..793d35583 100755 --- a/deluge/ui/null/deluge_shell.py +++ b/deluge/ui/null/deluge_shell.py @@ -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):