Yields the error :
AttributeError: 'HTTPResponse' object has no attribute 'body'. Did you mean: '_body'?
Expected behavior
It should throw an error the SdkException in pinterest.utils.refresh_access_token.get_new_access_token with b'{"code":283,"message":"The authorization grant is invalid"}'
Screenshots
-
Additional Details (please complete the following information):
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Executing the following code where the refresh token is invalid or has the wrong grants
Yields the error :
AttributeError: 'HTTPResponse' object has no attribute 'body'. Did you mean: '_body'?
Expected behavior
It should throw an error the SdkException in pinterest.utils.refresh_access_token.get_new_access_token with
b'{"code":283,"message":"The authorization grant is invalid"}'
Screenshots
-
Additional Details (please complete the following information):
Additional Context