Skip to content

'TypeError: exceptions must derive from BaseException' when missing argument label #131

Closed
@huonw

Description

@huonw

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions