We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd2b105 commit 0df8378Copy full SHA for 0df8378
1 file changed
CODE/_dev.py
@@ -154,12 +154,12 @@ def _handle_file_operations() -> None:
154
if re.match(r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$", version):
155
_update_ini_file("config.ini", version, "version")
156
break
157
- elif attempts >= max_attempts:
+ attempts += 1
158
+ if attempts >= max_attempts:
159
color_print("[x] Maximum attempts reached. Please run the script again.", "red")
160
exit()
161
else:
162
color_print("[!] Please enter a valid version number (e.g., 1.2.3)", "yellow")
- attempts += 1
163
color_print(f"[!] {max_attempts - attempts} attempts remaining", "yellow")
164
165
color_print("\n[-] Great Job! Please tick the box in the GitHub PR request for completing steps in --dev", "green")
0 commit comments