Prevent some cratchs
This commit is contained in:
parent
002f284d31
commit
f13f7bad6c
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue