From 1a20bbe7d0277c31f958b9f40ec89a821e43acb9 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 10 Apr 2014 12:03:42 +0200 Subject: [PATCH] Fix missing options when setting --- qutebrowser/config/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index 45ce8af58..22c6d06a2 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -261,7 +261,10 @@ class Config: sectdict = self.config[section] except KeyError: raise NoSectionError(section) - sectdict[self.optionxform(option)] = value + try: + sectdict[self.optionxform(option)] = value + except KeyError: + raise NoOptionError(option, section) def save(self): """Save the config file."""