Skip to content

Commit

Permalink
added file path check
Browse files Browse the repository at this point in the history
  • Loading branch information
Tjalling-dejong committed Dec 3, 2024
1 parent 26710b8 commit c1cdcd8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fm2prof/MaskOutputFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def write_mask_output_file(file_path: Union[Path, str], mask_points: list) -> No
file_path {str} -- file_path where to store the geojson.
mask_points {list} -- List of features to output.
"""
if not file_path:
raise ValueError("file_path is required.")
file_path = Path(file_path)
if not mask_points:
raise ValueError("mask_points cannot be empty.")
Expand Down

0 comments on commit c1cdcd8

Please sign in to comment.