On Thursday, February 16, 2017 at 9:51:40 AM UTC-6, Edward K. Ream wrote: > > > On Thu, Feb 16, 2017 at 4:32 AM, lewis <lewisn...@operamail.com> wrote: > > > > I managed to hard crash Leo > ...In a viewrendered window I clicked on [a url]. > > P. S. Leo catches all exceptions when executing commands, but clicking a > url calls a callback. For *this* bug it suffices to have g.openUrlOnClick > catch all exceptions. The potential exists for similar problems in other > callbacks. A code review is needed. >
Aha: All callbacks should be protected by a new *@g.callback* decorator. This decorator will wrap the callback in a try/except Exception statement. This is the easy way to ensure that the callback will never be able to raise an uncaught exception. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+unsubscr...@googlegroups.com. To post to this group, send email to leo-editor@googlegroups.com. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.