Skip to content

Commit

Permalink
rusty_bell_pub: dont crash if there is no menu
Browse files Browse the repository at this point in the history
  • Loading branch information
trnila committed Dec 9, 2023
1 parent 5e5b6b9 commit 8c0e61a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lunches.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ def el_amigo_muerto(dom):
@restaurant("Rusty Bell Pub", "https://www.menicka.cz/api/iframe/?id=1547", Location.Poruba)
def rusty_bell_pub(dom):
foods = list(menicka_parser(dom))
if not foods:
return
yield Soup(foods[1].name)
for food in foods[2:]:
yield food
Expand Down

0 comments on commit 8c0e61a

Please sign in to comment.