From 6011cc80aeadbf382f73df9eccb0d7cad44ebff5 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 5 Aug 2014 21:05:47 +0200 Subject: [PATCH] conftypes: Check {} correctly in ShellCommand. --- qutebrowser/config/conftypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config/conftypes.py b/qutebrowser/config/conftypes.py index 3aff525a4..34fe0493a 100644 --- a/qutebrowser/config/conftypes.py +++ b/qutebrowser/config/conftypes.py @@ -921,7 +921,7 @@ class ShellCommand(String): else: raise ValidationError(value, "may not be empty!") super().validate(value) - if self.placeholder and '{}' not in value: + if self.placeholder and '{}' not in self.transform(value): raise ValidationError(value, "needs to contain a {}-placeholder.") def transform(self, value):