Skip to content

Commit 4fd04d3

Browse files
committed
add catching error size problems.
1 parent 78df213 commit 4fd04d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

climada/util/save.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ def save(out_file_name, var):
3636
except FileNotFoundError:
3737
LOGGER.error('Folder not found: %s', folder_path)
3838
raise FileNotFoundError
39+
except OSError:
40+
LOGGER.error('Data is probably too big. Try splitting it.')
41+
raise FileNotFoundError

0 commit comments

Comments
 (0)