cookboob backends : handle bad id
This commit is contained in:
parent
303172a816
commit
95953d3217
3 changed files with 20 additions and 10 deletions
|
|
@ -43,5 +43,5 @@ class SevenFiftyGramsBrowser(BaseBrowser):
|
|||
|
||||
def get_recipe(self, id):
|
||||
self.location('http://www.750g.com/fiche_de_cuisine_complete.htm?recettes_id=%s' % id)
|
||||
assert self.is_on_page(RecipePage)
|
||||
return self.page.get_recipe(id)
|
||||
if self.is_on_page(RecipePage):
|
||||
return self.page.get_recipe(id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue