Skip to content
Snippets Groups Projects
Commit e5f5719c authored by Auke Klazema's avatar Auke Klazema
Browse files

SW-609: Fix syntax error in views.py

parent b1da61f4
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,7 @@ class TriggerListView(views.APIView): ...@@ -143,7 +143,7 @@ class TriggerListView(views.APIView):
return Response('Provided data has some issues! (Details: '+issues+")", status=status.HTTP_400_BAD_REQUEST) return Response('Provided data has some issues! (Details: '+issues+")", status=status.HTTP_400_BAD_REQUEST)
except Exception as err: except Exception as err:
#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?
return Response('Provided data has some issues! (Details: '+issues+")", status=status.HTTP_400_BAD_REQUEST) return Response('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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment