diff --git a/temba/api/v2/wenigpt/views.py b/temba/api/v2/wenigpt/views.py index 238a6634882..43c4d5b75d3 100644 --- a/temba/api/v2/wenigpt/views.py +++ b/temba/api/v2/wenigpt/views.py @@ -62,6 +62,9 @@ def get(self, request, *args, **kwargs): headers=headers, ) + if response.status_code >= 400: + return Response({"results": []}) + intelligences = response.json() results = []