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:
Chris Jones 2010-01-19 11:14:01 +00:00
parent abe9b24518
commit df6a370bf3
1 changed files with 1 additions and 1 deletions

View File

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