If the GOG API won't provide download links, we'll skip those files.

This commit is contained in:
Daniel Johnson 2024-01-11 20:00:20 -05:00
parent 2052ad4d6c
commit 0cca6e1bd5

View file

@ -293,9 +293,10 @@ class GOGService(OnlineService):
response = self.make_api_request(downlink)
except HTTPError as ex:
logger.error("HTTP error: %s", ex)
raise UnavailableGameError(_("The download of '%s' failed.") % downlink) from ex
return []
if not response:
raise UnavailableGameError(_("The download of '%s' failed.") % downlink)
logger.error("No download info obtained for %s", downlink)
return []
expanded = []
for field in ("checksum", "downlink"):