From f92f8928b08d0d4be062099a2fe849ed8dc8b12e Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Mon, 12 May 2014 11:48:57 +0200 Subject: [PATCH] Remove the validator, since it returns a dict on error and a list on results. Validator always expected a dict --- headphones/searcher.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/headphones/searcher.py b/headphones/searcher.py index 1cc78b84..6dc6741f 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -537,8 +537,7 @@ def searchNZB(album, new=False, losslessOnly=False): data = request.request_json( url='http://api.omgwtfnzbs.org/json/', - params=params, headers=headers, - validator=lambda x: type(x) == dict + params=params, headers=headers ) # Parse response