diff --git a/logs_parser.py b/logs_parser.py index 69a61df..558ff6f 100644 --- a/logs_parser.py +++ b/logs_parser.py @@ -2,7 +2,6 @@ import subprocess import json import sys import time -import os def is_json(myjson): try: @@ -68,8 +67,8 @@ if __name__ == "__main__": print(result[1]) if result[0] == False: print("Exiting 1...") - os._exit(1) + sys.exit(1) else: print("Exiting 0...") - os._exit(0) + sys.exit(0)