From 11a7d6c23c5cc4b5ef15c5d550fe85cec1d09399 Mon Sep 17 00:00:00 2001 From: piair Date: Sun, 2 Jul 2023 19:46:37 +0200 Subject: [PATCH] whoopps --- Flask/app.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Flask/app.py b/Flask/app.py index c1b1551..7be8a32 100644 --- a/Flask/app.py +++ b/Flask/app.py @@ -45,10 +45,7 @@ scheduler.add_job( # on relance le job def start_ms(i): print("\033[32m" + f"Starting config {i}" + "\033[0m") - try : - log = open(f"/app/user_data/logs/{i}.txt", 'a') # so that data written to it will be appended - except: - log = open(f"/app/user_data/logs/{i}.txt", 'w') # so that data written to it will be appended + log = open(f"/app/MsRewards-Reborn/user_data/logs/{i}.txt", 'a') # so that data written to it will be appended subprocess.Popen(["python3",'-u' ,"/app/MsRewards-Reborn/V6.py", "-c", i], stdout=log, stderr=log, shell=True) log.close()