Skip to content

Commit

Permalink
also add try/except outside of cast
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwolf committed Jul 27, 2021
1 parent c463b91 commit 56dd511
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion esda/map_comparison.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

try:
import pygeos
except:
except (ImportError, ModuleNotFoundError):
pass # gets handled in the _cast function.

# from nowosad and stepinski
Expand Down
6 changes: 6 additions & 0 deletions esda/shape.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import numpy
import pandas

try:
import pygeos
except (ImportError, ModuleNotFoundError):
pass # gets handled at the _cast level.

from .crand import njit, prange


Expand Down

0 comments on commit 56dd511

Please sign in to comment.