fix: removed the str

This commit is contained in:
NarayanBavisetti 2023-11-16 18:22:35 +05:30
parent cc98861d1e
commit 67643a8c1d

View File

@ -209,7 +209,7 @@ class BaseAPIView(TimezoneMixin, APIView, BasePaginator):
if settings.DEBUG:
print(e)
capture_exception(e)
return Response({"error": "Something went wrong please try again later", "e":str(e)}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
return Response({"error": "Something went wrong please try again later"}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
def dispatch(self, request, *args, **kwargs):