Don't freak out if no keybind section exists

This commit is contained in:
Florian Bruhin 2014-01-22 16:43:24 +01:00
parent bdd42a5413
commit 97c6d9f1c9

View File

@ -96,7 +96,10 @@ class QuteBrowser(QApplication):
cmdutils.register_all()
for cmd in cmdutils.cmd_dict.values():
cmd.signal.connect(self.cmd_handler)
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