diff --git a/qutebrowser/config/configtypes.py b/qutebrowser/config/configtypes.py index ab62c539b..3508b2ed0 100644 --- a/qutebrowser/config/configtypes.py +++ b/qutebrowser/config/configtypes.py @@ -317,10 +317,17 @@ class IntList(List): typestr = 'int-list' def transform(self, value): + if not value: + return None vals = super().transform(value) return [int(v) if v is not None else None for v in vals] def validate(self, value): + if not value: + if self.none_ok: + return + else: + raise configexc.ValidationError(value, "may not be empty!") try: vals = self.transform(value) except ValueError: