Fix: Handle KeyError when 'offers' key is missing

This commit is contained in:
absolutesolver336699xx-sys
2025-09-18 17:31:20 -03:00
committed by GitHub
parent 9766944201
commit 9823bbef15
@@ -249,7 +249,7 @@ class BCFreeDownloader:
dlret = self._download_file(
tralbum_data["freeDownloadPage"], self.options.format
)
elif album_release["offers"]["price"] == 0.0:
elif "offers" in album_release and album_release["offers"]["price"] == 0.0:
logger.info(f"{url} requires email")
if self.mail_session is None:
self._init_email()