In the current source codes, sometimes we use `ImportError` and sometimes `ModuleNotFoundError`, e.g., https://github.com/GenericMappingTools/pygmt/blob/5fd85ddff29eba92c32e79a7efa08651b4c50f19/pygmt/__init__.py#L130 https://github.com/GenericMappingTools/pygmt/blob/5fd85ddff29eba92c32e79a7efa08651b4c50f19/pygmt/figure.py#L11 `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`. ref: https://stackoverflow.com/questions/62854761/python3-8-whats-the-difference-between-importerror-and-modulenotfounderror
Activity
Switch from ModuleNotFoundError to ImportError