Просмотр исходного кода

slideshow.py: add return code on error (#1636)

* slideshow.py: add return code on error
* Scripts: remove dead code

Co-authored-by: Lesha Lomalkin <info@lomalkin.ru>
Co-authored-by: あく <alleteam@gmail.com>
Lesha Lomalkin 3 лет назад
Родитель
Сommit
4e1470cef2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      scripts/slideshow.py

+ 1 - 1
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)