PyPardot4
PyPardot4 copied to clipboard
AttributeError raised when API responds with 500 status code
Prospect query throws an AttributeError when it attempts to get the results from the response object... https://github.com/mneedham91/PyPardot4/blob/5b26b871b7d4f6385755b2f3737a299509659ce1/pypardot/objects/prospects.py#L21
...because the client has set it to the status code (e.g. integer) when it expects a json string: https://github.com/mneedham91/PyPardot4/blob/5b26b871b7d4f6385755b2f3737a299509659ce1/pypardot/client.py#L146