notify for redis storage errors
This commit is contained in:
parent
9e6feb90a5
commit
be807ae2c0
@ -108,6 +108,7 @@ class RedisCache:
|
||||
Returns:
|
||||
None
|
||||
"""
|
||||
try:
|
||||
redis_mapping = {
|
||||
'id': sqlite_id,
|
||||
'src': lyr_result.src,
|
||||
@ -129,6 +130,7 @@ class RedisCache:
|
||||
lyr_result.artist, lyr_result.song, sqlite_id, newkey)
|
||||
await self.notifier.send("INFO",
|
||||
f"Stored {lyr_result.artist} - {lyr_result.song} (related SQLite Row ID: {sqlite_id}) to {newkey}")
|
||||
|
||||
|
||||
|
||||
except Exception as e:
|
||||
await self.notifier.send(f"ERROR @ {__file__}",
|
||||
f"Failed to store {lyr_result.artist} - {lyr_result.song}\
|
||||
(SQLite id: {sqlite_id}) to Redis:\n{str(e)}")
|
Loading…
x
Reference in New Issue
Block a user