From 4e1470cef2bf9ffca3b17ae38cbbce0e7a1f9eb2 Mon Sep 17 00:00:00 2001 From: Lesha Lomalkin Date: Mon, 22 Aug 2022 19:24:08 +0300 Subject: [PATCH] slideshow.py: add return code on error (#1636) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * slideshow.py: add return code on error * Scripts: remove dead code Co-authored-by: Lesha Lomalkin Co-authored-by: あく --- scripts/slideshow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/slideshow.py b/scripts/slideshow.py index 7626a6aca..8a9541a7c 100644 --- a/scripts/slideshow.py +++ b/scripts/slideshow.py @@ -36,7 +36,7 @@ class Main(App): file_idx += 1 except Exception as e: self.logger.error(e) - break + return 3 widths = set(img.width for img in images) heights = set(img.height for img in images)