discogs
discogs copied to clipboard
Fix error raising
Currently if you get a 429 (or any other we theoretically catch), we won't catch it because we're doing string comparisons on integers, and thus we jsut get a JSON::ParserError.
This fixes that so we get the expected error classes.
In addition it adds a new unknown exception that gives the use some extra information.
Signed-off-by: Phil Dibowitz [email protected]