Fix toggling options

This commit is contained in:
Florian Bruhin 2017-06-19 13:04:43 +02:00
parent 44e4816cbb
commit d7f1ebedbf

View File

@ -176,7 +176,7 @@ class ConfigCommands:
# Handle inversion as special cases of the cycle code path
option = option[:-1]
opt = self._config.get_opt(option)
if opt.typ is configtypes.Bool:
if isinstance(opt.typ, configtypes.Bool):
values = ['false', 'true']
else:
raise cmdexc.CommandError(