mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -03:30
fix a minor bug in the way we report certain license upload errors
This commit is contained in:
@@ -366,7 +366,7 @@ class ApiV2ConfigView(APIView):
|
|||||||
try:
|
try:
|
||||||
license_data = validate_entitlement_manifest(license_data['manifest'])
|
license_data = validate_entitlement_manifest(license_data['manifest'])
|
||||||
except ValueError as e:
|
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:
|
except Exception:
|
||||||
logger.exception('Invalid manifest submitted. {}')
|
logger.exception('Invalid manifest submitted. {}')
|
||||||
return Response({"error": _('Invalid manifest submitted.')}, status=status.HTTP_400_BAD_REQUEST)
|
return Response({"error": _('Invalid manifest submitted.')}, status=status.HTTP_400_BAD_REQUEST)
|
||||||
|
|||||||
Reference in New Issue
Block a user