FuelSDK-Python icon indicating copy to clipboard operation
FuelSDK-Python copied to clipboard

Catch Exception from JSONDecodeError

Open miguelgf opened this issue 5 years ago • 1 comments

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 avatar Dec 16 '20 16:12 miguelgf

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

Thanks

miguelgf avatar Dec 16 '20 16:12 miguelgf