Skip to content

Commit

Permalink
refactor: fix argument redefined from local
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-RA-King committed Apr 6, 2023
1 parent d19176f commit e146029
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pynball/pynball.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,9 @@ def mkproject(create_all: str, name: str, project_name: str) -> None:
ver = str(name)
version_path = Path("")
pynball_versions = _get_pynball("dict_path_object", "PYNBALL")
for name in pynball_versions:
if name == ver:
version_path = pynball_versions[name]
for label in pynball_versions:
if label == ver:
version_path = pynball_versions[label]
break
if version_path == Path(""):
message = f"{ver} is not configured in Pynball - Use the 'add' command"
Expand Down

0 comments on commit e146029

Please sign in to comment.