Validate configtypes.Command correctly

This commit is contained in:
Florian Bruhin 2017-06-19 20:07:12 +02:00
parent ad919fc972
commit 2577b2c5e3

View File

@ -734,7 +734,7 @@ class Command(BaseType):
from qutebrowser.commands import runners, cmdexc
parser = runners.CommandParser()
try:
parser.parse_all(value)
list(parser.parse_all(value))
except cmdexc.Error as e:
raise configexc.ValidationError(value, str(e))