From 84509209b515aa3c9bdc6aac7a7a959024cb897d Mon Sep 17 00:00:00 2001 From: Jonathan Boyle Date: Sun, 16 Jun 2024 19:27:30 +0100 Subject: [PATCH] fix: error on dlc if no installer (log error and ignore) #48 --- gogdl/dl/managers/linux.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gogdl/dl/managers/linux.py b/gogdl/dl/managers/linux.py index 3c587f0..2889ec6 100644 --- a/gogdl/dl/managers/linux.py +++ b/gogdl/dl/managers/linux.py @@ -110,6 +110,13 @@ def setup(self): linux_installers = self.filter_linux_installers(dlc["downloads"]["installers"]) installer = self.find_matching_installer(linux_installers) + + if installer is None: + self.logger.error( + dlc["title"] + " - Does not have a linux installer" + ) + continue + installer_data = dl_utils.get_json(self.api_handler, installer["files"][0]["downlink"]) install_handler = linux.InstallerHandler(installer_data["downlink"],