1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

fix: referenced before assignment

This commit is contained in:
OniriCorpe 2024-03-13 02:56:34 +01:00 committed by OniriCorpe
parent f33b547002
commit b50e85150c

View file

@ -82,8 +82,8 @@ def generate_READMEs(app_path: Path):
description = None
screenshots: List[str]
if (app_path / "doc" / "screenshots").exists():
screenshots = []
if (app_path / "doc" / "screenshots").exists():
# 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):