From bb00dd218d296c064972b5699740742941847f38 Mon Sep 17 00:00:00 2001 From: TheoD02 Date: Thu, 5 Aug 2021 19:27:28 +0200 Subject: [PATCH] Fix error "AttributeError: 'dict' object has no attribute 'name'" when attempt to downloading an artist --- deemix/utils/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deemix/utils/__init__.py b/deemix/utils/__init__.py index 5bbd132..5e732fc 100644 --- a/deemix/utils/__init__.py +++ b/deemix/utils/__init__.py @@ -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'):