Skip to content

Commit 5c22840

Browse files
committed
clean up messaging more
1 parent 25f1c06 commit 5c22840

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

adscrawler/app_stores/apple.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get_app_ids_with_retry(
6161
time.sleep(delay)
6262
retries += 1
6363
if len(app_ids) == 0:
64-
logger.info(f"{log_info=} failed to load apps!")
64+
logger.info(f"{log_info=} returned empty list of apps")
6565
return app_ids
6666

6767

@@ -125,7 +125,7 @@ def scrape_ios_ranks(
125125
scraper = AppStoreScraper()
126126
for _coll_key, coll_value in collections.items():
127127
for cat_key, cat_value in categories.items():
128-
logger.info(f"{scrape_info} Collection: {_coll_key}, category: {cat_key}")
128+
logger.info(f"{scrape_info} Coll_key: {_coll_key}, cat_key: {cat_key}")
129129
try:
130130
scraped_ids = get_app_ids_with_retry(
131131
scraper, coll_value=coll_value, cat_value=cat_value, country=country
@@ -145,9 +145,7 @@ def scrape_ios_ranks(
145145
for rank, app in enumerate(scraped_ids)
146146
]
147147
except Exception as e:
148-
logger.error(
149-
f"Failed to scrape collection {_coll_key}, category {cat_key} after multiple retries: {str(e)}"
150-
)
148+
logger.error(f"{scrape_info} failed after multiple retries: {str(e)}")
151149
return ranked_dicts
152150

153151

0 commit comments

Comments
 (0)