-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
Labels
maintenanceBoring but important stuff for the core devsBoring but important stuff for the core devs
Milestone
Description
In the current source codes, sometimes we use ImportError and sometimes ModuleNotFoundError, e.g.,
Line 130 in 5fd85dd
| except ImportError: |
Line 11 in 5fd85dd
| except ModuleNotFoundError: |
ModuleNotFoundError is a subclass of ImportError (https://docs.python.org/3/library/exceptions.html#ModuleNotFoundError). As per https://www.scivision.dev/python-importerror-vs-modulenotfound/, maybe we should always use ImportError.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
maintenanceBoring but important stuff for the core devsBoring but important stuff for the core devs