respect --quit when JSON exception is thrown
This commit is contained in:
parent
3d5a2fc1a7
commit
33324cde26
1 changed files with 2 additions and 1 deletions
|
@ -294,7 +294,8 @@ def main():
|
||||||
except InvalidJSONFile as exception:
|
except InvalidJSONFile as exception:
|
||||||
VanillaPrint(str(exception.__class__.__name__), ">>", str(exception))
|
VanillaPrint(str(exception.__class__.__name__), ">>", str(exception))
|
||||||
VanillaPrint("Resolve it or remove it to proceed")
|
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()
|
sys.exit()
|
||||||
|
|
||||||
if arguments.set_filename:
|
if arguments.set_filename:
|
||||||
|
|
Loading…
Reference in a new issue