From 4dd4b465e2d39280b361db5bd0ba785ddc61eb60 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 5 Aug 2014 13:05:36 +0200 Subject: [PATCH] conftypes: Fix minint/maxint validation in PercList. --- qutebrowser/config/conftypes.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qutebrowser/config/conftypes.py b/qutebrowser/config/conftypes.py index f6aaa217b..4771a25b7 100644 --- a/qutebrowser/config/conftypes.py +++ b/qutebrowser/config/conftypes.py @@ -486,12 +486,12 @@ class PercOrInt(BaseType): intval = int(value) except ValueError: raise ValidationError(value, "must be integer or percentage!") - if self.minint is not None and intval < self.minint: - raise ValidationError(value, "must be {} or bigger!".format( - self.minint)) - if self.maxint is not None and intval > self.maxint: - raise ValidationError(value, "must be {} or smaller!".format( - self.maxint)) + if self.minint is not None and intval < self.minint: + raise ValidationError(value, "must be {} or bigger!".format( + self.minint)) + if self.maxint is not None and intval > self.maxint: + raise ValidationError(value, "must be {} or smaller!".format( + self.maxint)) class Command(BaseType):