From 798f7292513d08e0120e52775f0a4952adc7cef3 Mon Sep 17 00:00:00 2001 From: Ilia Abashin Date: Tue, 15 Aug 2017 17:58:28 +0300 Subject: Fixed api_access unit tests Fixed issues caused by migration to 'requests' library Change-Id: I4b77c9b5be8149639ae287c18055382f3892fff4 Signed-off-by: Ilia Abashin --- app/discover/fetchers/api/api_access.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/discover/fetchers') diff --git a/app/discover/fetchers/api/api_access.py b/app/discover/fetchers/api/api_access.py index 3250378..84c4de3 100644 --- a/app/discover/fetchers/api/api_access.py +++ b/app/discover/fetchers/api/api_access.py @@ -161,7 +161,7 @@ class ApiAccess(Fetcher): else: msg = ", response: {}".format(response.text) self.log.error("req_url: {} {}".format(req_url, msg)) - return response + return None ret = response.json() return ret -- cgit 1.2.3-korg