1
0
Fork 0
mirror of synced 2024-06-29 03:21:19 +12:00

respect --quit when JSON exception is thrown

This commit is contained in:
Ali Parlakci 2021-03-27 12:31:00 +03:00
parent 3d5a2fc1a7
commit 33324cde26

View file

@ -294,7 +294,8 @@ def main():
except InvalidJSONFile as exception:
VanillaPrint(str(exception.__class__.__name__), ">>", str(exception))
VanillaPrint("Resolve it or remove it to proceed")
input("\nPress enter to quit")
if not GLOBAL.arguments.quit:
input("\nPress enter to quit\n")
sys.exit()
if arguments.set_filename: