rdavid1099 / poke-api-v2

Ruby gem wrapper for https://pokeapi.co/api/v2/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Catch error if query is not found

rdavid1099 opened this issue · comments

Currently, JSON::ParserError (743: unexpected token at 'Not Found'): is being thrown if a query does not return a result. The gem should catch this and return nil.

Closed with PR #146