Skip to content

Commit

Permalink
fix: referenced before assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
OniriCorpe committed Mar 13, 2024
1 parent 33e094c commit 5692516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/readme_generator/make_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5692516

Please sign in to comment.