diff options
author | Cara Salter <cara@devcara.com> | 2023-02-16 12:57:05 -0500 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2023-02-16 12:57:05 -0500 |
commit | c272478b4e63c24702e2d968dc8c6d4dbe2e225a (patch) | |
tree | ae5c89942636396cd01b531d1d4f2cad65bcbf7f /installer.py | |
parent | b0b759f3f1adedcafc10961a1a4fa838d80c5142 (diff) | |
download | modpackman-c272478b4e63c24702e2d968dc8c6d4dbe2e225a.tar.gz modpackman-c272478b4e63c24702e2d968dc8c6d4dbe2e225a.zip |
Fix installer.py
can't iter over a set without iter()
Diffstat (limited to 'installer.py')
-rwxr-xr-x | installer.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/installer.py b/installer.py index bdad7a6..627e340 100755 --- a/installer.py +++ b/installer.py @@ -51,7 +51,7 @@ def setup_forge(profile_id): profiles = json.load(f) difference = set(profiles["profiles"].keys()) - old_profile_ids if difference: - forge_profile_id = next(difference) + forge_profile_id = next(iter(difference)) forge_game_version = profiles["profiles"][forge_profile_id]["lastVersionId"] del profiles["profiles"][forge_profile_id] else: |