From ee06df97a4c14ef83a17746ac04536bc6644edf3 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Wed, 28 Oct 2020 09:57:42 -0400 Subject: [PATCH] fix a minor bug in the way we report certain license upload errors --- awx/api/views/root.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views/root.py b/awx/api/views/root.py index 9c817ec7b1..0f5e7e6cdd 100644 --- a/awx/api/views/root.py +++ b/awx/api/views/root.py @@ -366,7 +366,7 @@ class ApiV2ConfigView(APIView): try: license_data = validate_entitlement_manifest(license_data['manifest']) except ValueError as e: - return Response({"error": e}, status=status.HTTP_400_BAD_REQUEST) + return Response({"error": str(e)}, status=status.HTTP_400_BAD_REQUEST) except Exception: logger.exception('Invalid manifest submitted. {}') return Response({"error": _('Invalid manifest submitted.')}, status=status.HTTP_400_BAD_REQUEST)