@@ -143,7 +143,7 @@ class TriggerListView(views.APIView):
...
@@ -143,7 +143,7 @@ class TriggerListView(views.APIView):
returnResponse('Provided data has some issues! (Details: '+issues+")",status=status.HTTP_400_BAD_REQUEST)
returnResponse('Provided data has some issues! (Details: '+issues+")",status=status.HTTP_400_BAD_REQUEST)
exceptExceptionaserr:
exceptExceptionaserr:
#traceback.print_exc()
#traceback.print_exc()
issues=str(str(err).split('File')[0]))# remove internal details. For some reason the error message also contains the backtrace. Introduced by RPC?
issues=str(str(err).split('File')[0])# remove internal details. For some reason the error message also contains the backtrace. Introduced by RPC?
returnResponse('Provided data has some issues! (Details: '+issues+")",status=status.HTTP_400_BAD_REQUEST)
returnResponse('Provided data has some issues! (Details: '+issues+")",status=status.HTTP_400_BAD_REQUEST)
# for use with data model: return Response('Provided data has some issues: ' +str(serializer.errors)+" (Accepted were: "+str(serializer.data)+")", status=status.HTTP_400_BAD_REQUEST)
# for use with data model: return Response('Provided data has some issues: ' +str(serializer.errors)+" (Accepted were: "+str(serializer.data)+")", status=status.HTTP_400_BAD_REQUEST)