Skip to content

Commit

Permalink
Merge pull request #4644 from neutrinoceros/fix_cartopy_importerror
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros authored Aug 23, 2023
2 parents 484d63a + 7a7f0f1 commit 4b3c598
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt/utilities/on_demand_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ class NotCartopy(NotAModule):
for cartopy imports.
"""

def __init__(self, pkg_name):
self.pkg_name = pkg_name
def __init__(self, pkg_name, exc: Optional[BaseException] = None):
super().__init__(pkg_name, exc)
if any(s in sys.version for s in ("Anaconda", "Continuum")):
# the conda-based installs of cartopy don't have issues with the
# GEOS library, so the error message for users with conda can be
Expand Down

0 comments on commit 4b3c598

Please sign in to comment.