From e14602932126813a66f197173008ee37838ad188 Mon Sep 17 00:00:00 2001 From: Stephen-RA-King <33905365+Stephen-RA-King@users.noreply.github.com> Date: Thu, 6 Apr 2023 19:58:29 +0100 Subject: [PATCH] refactor: fix argument redefined from local --- src/pynball/pynball.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pynball/pynball.py b/src/pynball/pynball.py index 8fbb65d..2726e76 100644 --- a/src/pynball/pynball.py +++ b/src/pynball/pynball.py @@ -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"