From f13f7bad6cc89ff3cf29625567821d7c9ede1f10 Mon Sep 17 00:00:00 2001 From: Florent Date: Mon, 4 Nov 2013 11:24:28 +0100 Subject: [PATCH] Prevent some cratchs --- modules/allocine/browser.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/allocine/browser.py b/modules/allocine/browser.py index c6b6b24d..31e5e4f3 100644 --- a/modules/allocine/browser.py +++ b/modules/allocine/browser.py @@ -58,6 +58,8 @@ class AllocineBrowser(BaseBrowser): ('filter', 'movie')] res = self.__do_request('search', params) + if res is None: + return jres = json.loads(res) if 'movie' not in jres['feed']: return @@ -95,6 +97,8 @@ class AllocineBrowser(BaseBrowser): ('filter', 'person')] res = self.__do_request('search', params) + if res is None: + return jres = json.loads(res) if 'person' not in jres['feed']: return