fix exit
This commit is contained in:
parent
d75baceae9
commit
7ecfd10d50
@ -2,7 +2,6 @@ import subprocess
|
|||||||
import json
|
import json
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import os
|
|
||||||
|
|
||||||
def is_json(myjson):
|
def is_json(myjson):
|
||||||
try:
|
try:
|
||||||
@ -68,8 +67,8 @@ if __name__ == "__main__":
|
|||||||
print(result[1])
|
print(result[1])
|
||||||
if result[0] == False:
|
if result[0] == False:
|
||||||
print("Exiting 1...")
|
print("Exiting 1...")
|
||||||
os._exit(1)
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
print("Exiting 0...")
|
print("Exiting 0...")
|
||||||
os._exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user