Skip to content

Commit

Permalink
Swallow unlink error on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Nov 11, 2024
1 parent b4cb534 commit fb1df09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gridmet_bmi/bmi_gridmet.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ def finalize(self) -> None:
printing reports.
"""
self._day = 0
self._model.clear_cache()
try:
self._model.clear_cache()
except PermissionError as error:
print(error)

def get_component_name(self) -> str:
"""Name of the component.
Expand Down

0 comments on commit fb1df09

Please sign in to comment.