Skip to content

Commit e740fc2

Browse files
Update CODE/_dev.py
Co-authored-by: Copilot <[email protected]> Signed-off-by: Shahm Najeeb <[email protected]>
1 parent e77824b commit e740fc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CODE/_dev.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,12 @@ def _handle_file_operations() -> None:
154154
if re.match(r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$", version):
155155
_update_ini_file("config.ini", version, "version")
156156
break
157-
elif attempts >= max_attempts:
157+
attempts += 1
158+
if attempts >= max_attempts:
158159
color_print("[x] Maximum attempts reached. Please run the script again.", "red")
159160
exit()
160161
else:
161162
color_print("[!] Please enter a valid version number (e.g., 1.2.3)", "yellow")
162-
attempts += 1
163163
color_print(f"[!] {max_attempts - attempts} attempts remaining", "yellow")
164164

165165
color_print("\n[-] Great Job! Please tick the box in the GitHub PR request for completing steps in --dev", "green")

0 commit comments

Comments
 (0)