X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fjobs%2Fviews.py;h=7221bf5551b40c790b3165e4934920577f240182;hb=46ad7c172411214c5432ed93fda4271288077447;hp=cdd7ba4f959c0870cf85a91e847992a40ba8572d;hpb=37b1ae2386c365293249421595f0722c25bc8e8d;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/jobs/views.py b/lcm/lcm/jobs/views.py index cdd7ba4f..7221bf55 100644 --- a/lcm/lcm/jobs/views.py +++ b/lcm/lcm/jobs/views.py @@ -53,4 +53,4 @@ class JobView(APIView): return Response(data=resp_serializer.data, status=status.HTTP_200_OK) except Exception as e: logger.error(traceback.format_exc()) - return Response(data={'error': e.message}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) + return Response(data={'error': e.args[0]}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)