From f4a1e4610bd6ea05a468fab97364f540cf00bb8c Mon Sep 17 00:00:00 2001 From: derrod Date: Thu, 6 Aug 2020 09:28:35 +0200 Subject: [PATCH] [core] Skip savegame download if manifest empty --- legendary/core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/legendary/core.py b/legendary/core.py index fc541ef..be362ea 100644 --- a/legendary/core.py +++ b/legendary/core.py @@ -513,6 +513,11 @@ class LegendaryCore: if r.status_code != 200: self.log.error(f'Download failed, status code: {r.status_code}') continue + + if not r.content: + self.log.error('Manifest is empty! Skipping...') + continue + m = self.load_manifest(r.content) # download chunks required for extraction