File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
music_assistant/controllers/media Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ async def _set_album_artist(
443443 self , db_id : int , artist : Artist | ItemMapping , overwrite : bool = False
444444 ) -> ItemMapping :
445445 """Store Album Artist info."""
446- db_artist : Artist | ItemMapping = None
446+ db_artist : Artist | ItemMapping | None = None
447447 if artist .provider == "library" :
448448 db_artist = artist
449449 elif existing := await self .mass .music .artists .get_library_item_by_prov_id (
@@ -456,6 +456,7 @@ async def _set_album_artist(
456456 artist , overwrite_existing = overwrite
457457 )
458458 # write (or update) record in album_artists table
459+ assert self .mass .music .database is not None
459460 await self .mass .music .database .insert_or_replace (
460461 DB_TABLE_ALBUM_ARTISTS ,
461462 {
You can’t perform that action at this time.
0 commit comments