From 97c6d9f1c97af9cbba360ea48b0474c035947752 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 22 Jan 2014 16:43:24 +0100 Subject: [PATCH] Don't freak out if no keybind section exists --- qutebrowser/app.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qutebrowser/app.py b/qutebrowser/app.py index 45101f091..a9254711f 100644 --- a/qutebrowser/app.py +++ b/qutebrowser/app.py @@ -96,7 +96,10 @@ class QuteBrowser(QApplication): cmdutils.register_all() for cmd in cmdutils.cmd_dict.values(): cmd.signal.connect(self.cmd_handler) - self.keyparser.from_config_sect(self.config['keybind']) + try: + self.keyparser.from_config_sect(self.config['keybind']) + except KeyError: + pass def cmd_handler(self, tpl): """Handler which gets called from all commands and delegates the