Skip to content
Snippets Groups Projects
Commit 90d37894 authored by red-agent's avatar red-agent
Browse files

Fixed arguments check in raw commands

parent 91e28d0e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment