Skip to content

Commit

Permalink
bugfix: TypeError
Browse files Browse the repository at this point in the history
missing return statement resulted in: "TypeError: The view function did not return a valid response. The
function either returned None or ended without a return statement."
  • Loading branch information
bossie committed Apr 14, 2020
1 parent 634ec50 commit 1f1d244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openeo_driver/save_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def create_flask_response(self):
if self.format.lower() in ('netcdf'):
filename = self.to_netcdf()
return send_from_directory(os.path.dirname(filename), os.path.basename(filename))
else:
super().create_flask_response()

return super().create_flask_response()

def create_point_timeseries_xarray(self, feature_ids, timestamps,lats,lons,averages_by_feature):
import xarray as xr
Expand Down

0 comments on commit 1f1d244

Please sign in to comment.