diff --git a/hydromt/data_adapter/dataframe.py b/hydromt/data_adapter/dataframe.py index 747ded2ce..368e96380 100644 --- a/hydromt/data_adapter/dataframe.py +++ b/hydromt/data_adapter/dataframe.py @@ -178,7 +178,7 @@ def to_file( elif driver == "excel": fn_out = join(data_root, f"{data_name}.xlsx") obj.to_excel(fn_out, **kwargs) - else: + return fn_out, driver, read_kwargs raise ValueError(f"DataFrame: Driver {driver} is unknown.") return fn_out, driver, kwargs