more debug in the error answer from api
This commit is contained in:
parent
0b55d34d74
commit
e6141bcc7f
|
@ -65,8 +65,8 @@ def NewSnapshot(request):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
Build(data, tk.owner)
|
Build(data, tk.owner)
|
||||||
except Exception:
|
except Exception as err:
|
||||||
return JsonResponse({'status': 'fail'}, status=200)
|
return JsonResponse({'status': f"fail: {err}"}, status=500)
|
||||||
|
|
||||||
annotation = Annotation.objects.filter(
|
annotation = Annotation.objects.filter(
|
||||||
uuid=data['uuid'],
|
uuid=data['uuid'],
|
||||||
|
|
Loading…
Reference in New Issue