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