Fix error "AttributeError: 'dict' object has no attribute 'name'" when attempt to downloading an artist

This commit is contained in:
TheoD02 2021-08-05 19:27:28 +02:00
parent 01bcd9ce37
commit bb00dd218d

View file

@ -77,9 +77,9 @@ def removeDuplicateArtists(artist, artists):
def formatListener(key, data=None):
if key == "startAddingArtist":
return f"Started gathering {data.name}'s albums ({data.id})"
return f"Started gathering {data['name']}'s albums ({data['id']})"
if key == "finishAddingArtist":
return f"Finished gathering {data.name}'s albums ({data.id})"
return f"Finished gathering {data['name']}'s albums ({data['id']})"
if key == "updateQueue":
uuid = f"[{data['uuid']}]"
if data.get('downloaded'):