Skip to content

Commit

Permalink
Merge pull request #14 from fuzzylogiq/fix_parts_var
Browse files Browse the repository at this point in the history
Fixed variable name which caused NameError exception
  • Loading branch information
jc0b authored Sep 18, 2024
2 parents 02f8503 + 2e01731 commit ff690a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nudge-auto-updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ def get_gt_config_target(s:str):
config_version_parts = s.split(".")
if len(config_version_parts) == 1 :
return Version(int(config_version_parts[0]) + 1)
elif len(parts) == 2:
elif len(config_version_parts) == 2:
return Version(int(config_version_parts[0]), int(config_version_parts[1]) + 1)
elif len(parts) == 3:
elif len(config_version_parts) == 3:
return Version(int(config_version_parts[0]), int(config_version_parts[1]), int(config_version_parts[2]) + 1)
logging.error(f"{s} is not a valid target in configuration.yml")
sys.exit(1)
Expand Down

0 comments on commit ff690a5

Please sign in to comment.