Skip to content

Commit 7c4b4e0

Browse files
add 'no file found' error for flux_stations
1 parent 2b44213 commit 7c4b4e0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

schimpy/station.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,8 @@ def flux_stations_from_yaml(inp):
469469
if os.path.exists(inp):
470470
with open(inp) as f:
471471
content = yaml.full_load(f)
472+
elif inp.endswith("yml") | inp.endswith(".yaml"):
473+
raise ValueError(f"Could not find file {inp}")
472474
else:
473475
content = inp
474476
if not "linestrings" in content:

0 commit comments

Comments
 (0)