more debug in the error answer from api

This commit is contained in:
Cayo Puigdefabregas 2024-10-17 19:08:00 +02:00
parent d94b12d1a0
commit 1bb3b12636
1 changed files with 2 additions and 2 deletions

View File

@ -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'],