This is a very subtle bug, Multiple exception catches need to be a tuple. We were previously creating an exception object *called* NameError when we caught a KeyError
This commit is contained in:
parent
abe9b24518
commit
df6a370bf3
|
@ -80,7 +80,7 @@ class Window(Container, gtk.Window):
|
|||
self.hidebound = bindkey.tomboy_keybinder_bind(
|
||||
self.config['keybindings']['hide_window'],
|
||||
self.on_hide_window)
|
||||
except KeyError,NameError:
|
||||
except (KeyError, NameError):
|
||||
pass
|
||||
|
||||
if not self.hidebound:
|
||||
|
|
Loading…
Reference in New Issue