do not report LRC search fails, LRCs known to be more limited

This commit is contained in:
codey 2025-01-24 06:31:12 -05:00
parent 85a7440c67
commit b0a9af0560

View File

@ -68,12 +68,13 @@ class Aggregate:
if not search_result: if not search_result:
logging.info("%s - %s: all sources exhausted, not found.", logging.info("%s - %s: all sources exhausted, not found.",
artist, song) artist, song)
try: if plain: # do not record LRC fails
await self.redis_cache.increment_found_count("failed") try:
except Exception as e: await self.redis_cache.increment_found_count("failed")
traceback.print_exc() except Exception as e:
logging.info("Could not increment redis failed counter: %s", traceback.print_exc()
str(e)) logging.info("Could not increment redis failed counter: %s",
self.notifier.send(f"ERROR @ {__file__.rsplit("/", maxsplit=1)[-1]}", str(e))
f"Could not increment redis failed counter: {str(e)}") self.notifier.send(f"ERROR @ {__file__.rsplit("/", maxsplit=1)[-1]}",
f"Could not increment redis failed counter: {str(e)}")
return search_result return search_result