From a92ffd9770cd43e5bc7f4d29bd5f4cbee83efb57 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 15 Sep 2017 15:58:38 +0200 Subject: [PATCH] Improve NoOptionError traceback --- qutebrowser/config/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config/config.py b/qutebrowser/config/config.py index 6328f1710..044432e91 100644 --- a/qutebrowser/config/config.py +++ b/qutebrowser/config/config.py @@ -407,7 +407,7 @@ class Config(QObject): try: return configdata.DATA[name] except KeyError: - raise configexc.NoOptionError(name) + raise configexc.NoOptionError(name) from None def get(self, name): """Get the given setting converted for Python code."""