Prevent some cratchs

This commit is contained in:
Florent 2013-11-04 11:24:28 +01:00
commit f13f7bad6c

View file

@ -58,6 +58,8 @@ class AllocineBrowser(BaseBrowser):
('filter', 'movie')] ('filter', 'movie')]
res = self.__do_request('search', params) res = self.__do_request('search', params)
if res is None:
return
jres = json.loads(res) jres = json.loads(res)
if 'movie' not in jres['feed']: if 'movie' not in jres['feed']:
return return
@ -95,6 +97,8 @@ class AllocineBrowser(BaseBrowser):
('filter', 'person')] ('filter', 'person')]
res = self.__do_request('search', params) res = self.__do_request('search', params)
if res is None:
return
jres = json.loads(res) jres = json.loads(res)
if 'person' not in jres['feed']: if 'person' not in jres['feed']:
return return