Skip to content

Commit

Permalink
adds Timo his suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
anoukvlug committed Mar 29, 2023
1 parent e1fc063 commit 8a217d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oggm/utils/_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2981,8 +2981,10 @@ def read_pickle(self, filename, use_compression=None, filesuffix=''):
try:
out = pickle.load(f)
except ModuleNotFoundError as err:
if str(err) == "No module named 'shapely.io'":
if err.name == "shapely.io":
raise ModuleNotFoundError("You need shapely version 2.0 or higher for this to work.")
else:
raise err

# Some new attrs to add to old pre-processed directories
if filename == 'model_flowlines':
Expand Down

0 comments on commit 8a217d3

Please sign in to comment.