mirror of
https://github.com/SinTan1729/ReVancedBuilder.git
synced 2025-04-19 08:00:01 -05:00
fix: Unnecessary error
This commit is contained in:
parent
3401d50aa6
commit
454db3c28a
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,6 @@ if (flag != "checkonly" and not appstate["up-to-date"]) or flag in ["force", "bu
|
||||||
if appstate["up-to-date"] and flag != "buildonly":
|
if appstate["up-to-date"] and flag != "buildonly":
|
||||||
print("There's nothing to do.")
|
print("There's nothing to do.")
|
||||||
elif flag != "checkonly":
|
elif flag != "checkonly":
|
||||||
err_exit("", appstate, 0)
|
|
||||||
try:
|
try:
|
||||||
os.rename("versions.json", "versions-old.json")
|
os.rename("versions.json", "versions-old.json")
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
@ -217,6 +216,7 @@ elif flag != "checkonly":
|
||||||
subprocess.run(cmd, shell=True)
|
subprocess.run(cmd, shell=True)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
print(f"Got exception while running the build: '{ex}'")
|
print(f"Got exception while running the build: '{ex}'")
|
||||||
|
err_exit("", appstate, 0)
|
||||||
|
|
||||||
# Delete the lockfile
|
# Delete the lockfile
|
||||||
os.remove("lockfile")
|
os.remove("lockfile")
|
||||||
|
|
Loading…
Reference in a new issue