Skip to content

Replace RuntimeError with ModuleNotFoundError in contribute handlers #2743

@louis-she

Description

@louis-she

Some contribute handlers rely on third-party tools not installed alone with ignite. So there usually will be an import error when users use them for the first time. Some of the import errors raised are RuntimeError, instead, we want it to be a more specific error type like ModuleNotFoundError.

We should replace all the manually raised RuntimeError with ModuleNotFoundError when some package can not be imported in third-party contribute handlers.

reference: #2742 (comment)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions