nucleic / enaml

Declarative User Interfaces for Python
http://enaml.readthedocs.io/en/latest/
Other
1.53k stars 130 forks source link

examples: prevent crash if executing a handler in the editor raises #440

Closed MatthieuDartiailh closed 3 years ago

MatthieuDartiailh commented 3 years ago

Closes #436

Any error occurring will be redirected to the error pane, and the editor remain live.

Note that the same approach should not be used in a general app since raising in a handler can leave the app in a corrupted state.

codecov-io commented 3 years ago

Codecov Report

Merging #440 (61930c8) into main (65ab8d6) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #440   +/-   ##
=======================================
  Coverage   73.44%   73.44%           
=======================================
  Files         313      313           
  Lines       23976    23976           
=======================================
  Hits        17609    17609           
  Misses       6367     6367           
MatthieuDartiailh commented 3 years ago

@Tillsten does that address your issue ? or would you like something more ?