Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes TypeError in the Discogs plugin #5415

Merged
merged 11 commits into from
Sep 19, 2024
4 changes: 3 additions & 1 deletion beetsplug/discogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ def get_album_info(self, result):
albumtype = media = label = catalogno = labelid = None
if result.data.get("formats"):
albumtype = (
", ".join(result.data["formats"][0].get("descriptions", []))
", ".join(
amogus07 marked this conversation as resolved.
Show resolved Hide resolved
str(result.data["formats"][0].get("descriptions", []))
)
snejus marked this conversation as resolved.
Show resolved Hide resolved
or None
)
media = result.data["formats"][0]["name"]
Expand Down