On Sat, Oct 22, 2016 at 11:29 AM, Chris George <[email protected]> wrote:
> > Traceback (most recent call last): > File "/working/leo/leo-editor/leo/plugins/graphcanvas.py", line 163, in > <lambda> > u.btnColor.clicked.connect(lambda checked: o.setColor()) > File "/working/leo/leo-editor/leo/plugins/graphcanvas.py", line 1286, > in setColor > node = self.node[self.lastNodeItem] > KeyError: None > LeoPluginsController.callTagHandler catches all exceptions, but plugins can still throw uncaught exceptions, as in this example. As a matter of style, I much prefer dict.get(aKey) rather than dict[aKey], because the former never throws KeyError. Please file a bug report <https://github.com/leo-editor/leo-editor/issues> against the graphcanvas plugin. 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
