diff --git a/arke.py b/arke.py index d5b8a75..55c09c6 100644 --- a/arke.py +++ b/arke.py @@ -91,7 +91,10 @@ while is_on: # track state file = open("/shared/results.json", "r") - stateFile = open("/shared/state.log", "r") + if os.path.exists("/shared/state.log"): + stateFile = open("/shared/state.log", "r") + else: + stateFile = open("/shared/state.log", "w+") oldData = stateFile.read() if oldData != file.read():