Closed
Description
The following code fails with an unhelpful exception:
persistent_notification.create("foo")
Exception in <jupyter_0> line 1:
persistent_notification.create("foo")
^
TypeError: exceptions must derive from BaseException
The correct code is persistent_notification.create(message="foo")
but the error message doesn't hint at this at all.
PyScript version: 1.0.0 (eb4dde9)
(Thanks for pyscript, it's a very nice way to write automations and data processing services.)
Metadata
Metadata
Assignees
Labels
No labels