From 90d378941b253e1b007d0aefb61f5932c4d85d48 Mon Sep 17 00:00:00 2001 From: red-agent Date: Thu, 17 Sep 2009 11:36:47 +0300 Subject: [PATCH] Fixed arguments check in raw commands --- src/commands/framework.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/framework.py b/src/commands/framework.py index 5d2b2f19c..72b0000b2 100644 --- a/src/commands/framework.py +++ b/src/commands/framework.py @@ -512,7 +512,10 @@ class CommandProcessor(object): args.sort(key=itemgetter(1)) if spec_len > 1: - stopper, (start, end) = args[spec_len - 2] + try: + stopper, (start, end) = args[spec_len - 2] + except IndexError: + raise CommandError("Missing arguments", command) raw = arguments[end:] raw = raw.strip() or None