sbefort / json-odds-api

This module is for retrieving odds data from the JSON Odds API. See https://jsonodds.com for more information.
5 stars 2 forks source link

Move JSON.parse to try catch #3

Closed dangerisgo2021 closed 8 years ago

dangerisgo2021 commented 8 years ago

Hi I also encountered this issue - https://github.com/sbefort/json-odds-api/issues/1

To fix I moved the JSON.parse to the try catch in the custom parse function so that I could handle the error more gracefully.

I have also reach out to JsonOdds