Fix UnboundLocalError in :unbind
This commit is contained in:
parent
119f01bd5f
commit
2fb186efcd
@ -201,7 +201,7 @@ class KeyConfigParser(QObject):
|
|||||||
sect = self.keybindings[mode]
|
sect = self.keybindings[mode]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
raise cmdexc.CommandError("Can't find mode section '{}'!".format(
|
raise cmdexc.CommandError("Can't find mode section '{}'!".format(
|
||||||
sect))
|
mode))
|
||||||
try:
|
try:
|
||||||
del sect[key]
|
del sect[key]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user