Fixed arguments check in raw commands
This commit is contained in:
parent
91e28d0ed9
commit
90d378941b
1 changed files with 4 additions and 1 deletions
|
@ -512,7 +512,10 @@ class CommandProcessor(object):
|
||||||
args.sort(key=itemgetter(1))
|
args.sort(key=itemgetter(1))
|
||||||
|
|
||||||
if spec_len > 1:
|
if spec_len > 1:
|
||||||
|
try:
|
||||||
stopper, (start, end) = args[spec_len - 2]
|
stopper, (start, end) = args[spec_len - 2]
|
||||||
|
except IndexError:
|
||||||
|
raise CommandError("Missing arguments", command)
|
||||||
|
|
||||||
raw = arguments[end:]
|
raw = arguments[end:]
|
||||||
raw = raw.strip() or None
|
raw = raw.strip() or None
|
||||||
|
|
Loading…
Add table
Reference in a new issue