diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index 364484b70..863ecd5c5 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -494,7 +494,7 @@ class ConfigManager(QObject): for sectname in cp: if sectname in self.RENAMED_SECTIONS: sectname = self.RENAMED_SECTIONS[sectname] - if sectname is not 'DEFAULT' and sectname not in self.sections: + if sectname != 'DEFAULT' and sectname not in self.sections: if not relaxed: raise configexc.NoSectionError(sectname) for sectname in self.sections: