From 6c6f5b22b4c7492dff979a02be5557c08caa0f95 Mon Sep 17 00:00:00 2001 From: Toon Willems Date: Thu, 31 Oct 2024 19:50:23 +0100 Subject: [PATCH] meta is optional in the response --- lago_python_client/services/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lago_python_client/services/response.py b/lago_python_client/services/response.py index cfb8e6c..1b96105 100644 --- a/lago_python_client/services/response.py +++ b/lago_python_client/services/response.py @@ -127,7 +127,7 @@ def prepare_index_response( api_resource: [ prepare_object_response(response_model=response_model, data=el) for el in response_data[api_resource] ], - "meta": response_data["meta"], + "meta": response_data.get("meta", None), }