mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
fix a minor bug in the way we report certain license upload errors
This commit is contained in:
parent
6d412fd8e7
commit
ee06df97a4
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user