Skip to content

Instantly share code, notes, and snippets.

@cfm
Created July 7, 2016 02:54
Show Gist options
  • Save cfm/7375c2a418c8548b0e76f659274f0092 to your computer and use it in GitHub Desktop.
Save cfm/7375c2a418c8548b0e76f659274f0092 to your computer and use it in GitHub Desktop.
from traits.api import Bool, HasTraits
from traits.api import push_exception_handler
push_exception_handler(main=True, reraise_exceptions=True)
class Foo(HasTraits):
bar = Bool
def _bar_changed(self, old, new):
raise Exception('foo changed')
f = Foo()
f.bar = True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment