twingly / twingly-search-api-python

:snake: Twingly Blog Search API in Python

Home Page:https://developer.twingly.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unused methods

roback opened this issue · comments

Two methods (related to exception handling) in the Parser class aren't used. That also means that the function TwinglyException.from_api_response_message is not used either.

Instead the errors are handled directly in the .parse method.

In Ruby we do it like this: https://github.com/twingly/twingly-search-api-ruby/blob/72cec57ae11a1f865f9044d7bf1c7de38a2cb147/lib/twingly/search/parser.rb#L15-L18