Fixed arguments check in raw commands
This commit is contained in:
parent
91e28d0ed9
commit
90d378941b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue