diff --git a/web/run.py b/web/run.py index 33c9cd7..dbb512b 100755 --- a/web/run.py +++ b/web/run.py @@ -916,7 +916,10 @@ def generate_csv_contents_spz(target_slug, input_slug, started_at, stopped_at): list_df = [] for _name, _id in parameters_dict.items(): hp_logger.debug(f"Getting parameter id '{_id}' for '{_name}'") - _df = amda.get_data(_id, started_at, stopped_at).to_dataframe() + amda_dataset = amda.get_data(_id, started_at, stopped_at) + if amda_dataset is None: + continue + _df = amda_dataset.to_dataframe() if _name == 'xy_v': _df = _df.rename(columns={_df.columns[0]: 'vrad', _df.columns[1]: 'vtan'}) elif _name == 'xy_hee': -- libgit2 0.21.2