Demote friend ranking 405s to debug — private profiles are expected

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-09-17 22:13:02 -04:00
parent c183a13db2
commit c24a44618f
+4 -6
View File
@@ -49,7 +49,7 @@ async def _refresh_friend_sample(profile: BeliProfile, access_token: str) -> int
try:
following = await fetch_following(access_token, profile.beli_user_id)
except Exception as e:
logger.warning("Beli following fetch failed for profile %s: %s", profile.id, e)
logger.debug("Beli following fetch skipped for profile %s: %s", profile.id, e)
return 0
if not following:
@@ -69,11 +69,9 @@ async def _refresh_friend_sample(profile: BeliProfile, access_token: str) -> int
try:
results = await fetch_user_rankings(access_token, friend_id, category)
except Exception as e:
logger.warning(
"Beli friend ranking fetch failed (%s/%s): %s",
friend_id,
category,
e,
# 405 = private profile; log quietly and skip
logger.debug(
"Beli friend ranking skipped (%s/%s): %s", friend_id, category, e
)
continue