We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7c2d89 commit cd9710bCopy full SHA for cd9710b
xarray_ecmwf/client_polytope.py
@@ -38,5 +38,7 @@ def download(self, result: Any, target: str | None = None) -> str:
38
result.download(output_file=target)
39
if os.stat(target).st_size == 0:
40
request = result.describe()["user_request"]
41
- raise TypeError(f"polytope returned an empty file: {target} for {request}")
+ raise RuntimeError(
42
+ f"polytope returned an empty file: {target} for {request}"
43
+ )
44
return target
0 commit comments