8000 PythonError type name is lost · Issue #32 · denosaurs/deno_python · GitHub
[go: up one dir, main page]

Skip to content
PythonError type name is lost #32
Closed
@s-cork

Description

@s-cork

value.toString in python for an exception loses the type information which is particularly handy for debugging

suggested alternative

  let errorMessage = (value ?? type).getAttr("__repr__").call().toString();

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0