I was trying to integrate the library into my new project, and noticing exceptions on specific game queries (try "The Witcher 3" or "Black Ops" for examples). I have investigated and found that the issue is that some results have "TBA" instead of a date listed in the "release date" field, which makes the Convert.ChangeType call fail. This throws a System.FormatException, which is not handled currently.
I'm happy to fix the issue and add exception handling for this value to the SafeConvert method inside the Converter class, but wanted to see if there was a preference for the way this exception is handled. I would like to either return the default value of DateTime or null in case a "TBA" is encountered. Thoughts on either? LMK and I can put out a pull request
I was trying to integrate the library into my new project, and noticing exceptions on specific game queries (try "The Witcher 3" or "Black Ops" for examples). I have investigated and found that the issue is that some results have "TBA" instead of a date listed in the "release date" field, which makes the Convert.ChangeType call fail. This throws a System.FormatException, which is not handled currently. I'm happy to fix the issue and add exception handling for this value to the SafeConvert method inside the Converter class, but wanted to see if there was a preference for the way this exception is handled. I would like to either return the default value of DateTime or null in case a "TBA" is encountered. Thoughts on either? LMK and I can put out a pull request