Skip to content

Commit

Permalink
make sure tasks is not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
datawhores committed Mar 21, 2024
1 parent a10783d commit 8d75ae1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ofscraper/actions/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,8 @@ async def process_task(model_id, username, ele):
)
setattr(progress_utils.labelled_layout, "visible", True)
final_post_areas.remove("Labels")
if not bool(tasks):
break
done, pending = await asyncio.wait(
tasks, return_when=asyncio.FIRST_COMPLETED
)
Expand Down

0 comments on commit 8d75ae1

Please sign in to comment.