Fix UnboundLocalError in :unbind

This commit is contained in:
Florian Bruhin 2016-03-10 20:27:03 +01:00
parent 119f01bd5f
commit 2fb186efcd

View File

@ -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: