diff --git a/oda_api/api.py b/oda_api/api.py index 1c2b6f10..19dc8106 100644 --- a/oda_api/api.py +++ b/oda_api/api.py @@ -615,6 +615,8 @@ def parameters_dict_payload(self): for k, v in p.items(): if isinstance(v, (list, dict, set)) and (k not in ['catalog_selected_objects', 'selected_catalog', 'scw_list']): p[k] = json.dumps(v) + if v is None and k != 'token': + p[k] = '\x00' if self.is_submitted: return { @@ -922,7 +924,9 @@ def _decode_res_json(self, res): else: res = ast.literal_eval(str(res).replace('null', 'None')) + # what is it for? self.dig_list(res) + return res except Exception as e: