Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
🪳 Fix when no ads to watch
Browse files Browse the repository at this point in the history
  • Loading branch information
Dellenoam committed Dec 9, 2024
1 parent 3bc9092 commit e0ad5f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bot/core/ad_watcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ async def watch_ads(self, session: aiohttp.ClientSession) -> int:
logger.info(f"{self.session_name} | No ads to watch")
break
adsgram_response.raise_for_status()
adsgram_response_json = await adsgram_response.json()

if not adsgram_response_json:
logger.info(f"{self.session_name} | No ads to watch")
break

adsgram_response_json = await adsgram_response.json()

Expand Down

0 comments on commit e0ad5f4

Please sign in to comment.