Skip to content

ImportError or NameError? #4

@piyueh

Description

@piyueh

In the example of Jacobi solver, the code uses NameError to catch import failure on legate.numpy. If the intention is to handle the situation when legate.numpy is not available/installed, is it better to catch ImportFailure instead? Thanks.

https://github.com/nv-legate/legate.numpy/blob/026061bd8b5d02ceb7fcb25be73cece6d302c767/examples/jacobi.py#L26-L29

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