From 2fb186efcd5270f29239af62eaa98cbafd0d6768 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 10 Mar 2016 20:27:03 +0100 Subject: [PATCH] Fix UnboundLocalError in :unbind --- qutebrowser/config/parsers/keyconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config/parsers/keyconf.py b/qutebrowser/config/parsers/keyconf.py index 8db0e5054..487659984 100644 --- a/qutebrowser/config/parsers/keyconf.py +++ b/qutebrowser/config/parsers/keyconf.py @@ -201,7 +201,7 @@ class KeyConfigParser(QObject): sect = self.keybindings[mode] except KeyError: raise cmdexc.CommandError("Can't find mode section '{}'!".format( - sect)) + mode)) try: del sect[key] except KeyError: