Skip to content

Commit

Permalink
Minor Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
paolofrancioso committed Feb 16, 2023
1 parent ec664f5 commit 7510a2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ def run_bot(bot: telegram.Bot, categories: Dict[str, List[str]]) -> None:
items = search_items(keyword, category, item_page=page)
# api time limit for another http request is 1 second
time.sleep(1)
items_full.extend(items)
if items is not None:
items_full.extend(items)

raise StopIteration
counter = counter + 1
Expand Down

0 comments on commit 7510a2a

Please sign in to comment.