salesforce-marketingcloud / FuelSDK-Python

FuelSDK for python
Other
126 stars 194 forks source link

Catch Exception from JSONDecodeError #127

Open miguelgf opened 3 years ago

miguelgf commented 3 years ago

Eventually, without too much reasoning, the JSON saved as cache on the local file get a double }}, if that happens, every call to the SDK will fail with a JSONDecodeError

image

This handles the JSON error inside the try/except so it will try to fetch the proper URL again

miguelgf commented 3 years ago

How is the process of having this released? @manivinesh @sfdrogojan

Thanks