From 1bb3b1263642c26c904082c8d2cba41922a20f49 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 17 Oct 2024 19:08:00 +0200 Subject: [PATCH] more debug in the error answer from api --- api/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/views.py b/api/views.py index cf80b35..5aa5f87 100644 --- a/api/views.py +++ b/api/views.py @@ -66,8 +66,8 @@ def NewSnapshot(request): try: Build(data, tk.owner) - except Exception: - return JsonResponse({'status': 'fail'}, status=200) + except Exception as err: + return JsonResponse({'status': f"fail: {err}"}, status=500) annotation = Annotation.objects.filter( uuid=data['uuid'],