From 569251669212f576cbe5208e22eecf43e69e2171 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Wed, 13 Mar 2024 02:56:34 +0100 Subject: [PATCH] fix: referenced before assignment --- tools/readme_generator/make_readme.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/readme_generator/make_readme.py b/tools/readme_generator/make_readme.py index cbaeed04ab..cfa597fa7e 100755 --- a/tools/readme_generator/make_readme.py +++ b/tools/readme_generator/make_readme.py @@ -82,8 +82,8 @@ def generate_READMEs(app_path: Path): description = None screenshots: List[str] + screenshots = [] if (app_path / "doc" / "screenshots").exists(): - screenshots = [] # only pick files (no folder) on the root of 'screenshots' for entry in os.scandir(os.path.join(app_path, "doc", "screenshots")): if os.DirEntry.is_file(entry):