Skip to content

Commit

Permalink
Fixed variable name which caused NameError exception
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzylogiq committed Sep 18, 2024
1 parent 02f8503 commit 2e01731
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 2e01731

Please sign in to comment.