From 39e2fdce272a3fa347e231b5061cd2931471dad6 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 6 Jun 2025 17:24:41 -0400 Subject: [PATCH] [music] Fix allmusic lookup --- vrobbler/apps/music/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vrobbler/apps/music/models.py b/vrobbler/apps/music/models.py index 9903bc2..1e4610d 100644 --- a/vrobbler/apps/music/models.py +++ b/vrobbler/apps/music/models.py @@ -324,7 +324,9 @@ class Album(TimeStampedModel): self.allmusic_id = slug self.save(update_fields=["allmusic_id"]) - allmusic_data = scrape_data_from_allmusic(self.allmusic_link) + allmusic_data = None + if self.allmusic_link: + allmusic_data = scrape_data_from_allmusic(self.allmusic_link) if not allmusic_data: logger.info(f"No allmsuic data for {self} by {self.album_artist}")