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