feat(cli): raise error if get entity api fails (#4922)

This commit is contained in:
mayurinehate 2022-05-20 09:20:59 +05:30 committed by GitHub
parent 69466c069c
commit ec356d3aab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -556,6 +556,7 @@ def get_entity(
endpoint = endpoint + "?aspects=List(" + ",".join(aspect) + ")"
response = session.get(gms_host + endpoint)
response.raise_for_status()
return response.json()