From 0656b0598e296df50493bbf80e050125c3129a72 Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 22 Jun 2022 00:54:45 +0800 Subject: [PATCH] crash to black fixed ignore warnings from PIL python module, preventing buffer from building up in stderr --- server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server.py b/server.py index 599c1c1..c621d6a 100755 --- a/server.py +++ b/server.py @@ -60,7 +60,7 @@ LOGO_FOLDER = 'logos/' CSV_FOLDER = 'csv/new/' ALLOWED_EXTENSIONS = {'csv', 'png'} -ticker = pexpect.spawn("sudo -E python3 stockTicker.py") +ticker = pexpect.spawn("sudo -E python3 -W ignore stockTicker.py") time.sleep(2) # give the ticker time to initialise @@ -288,13 +288,13 @@ def start(): global ticker_stopped if displaying_screensaver: screensaver_p.close() - ticker = pexpect.spawn("sudo -E python3 stockTicker.py") + ticker = pexpect.spawn("sudo -E python3 -W ignore stockTicker.py") #api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py") #api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 database_caller.py") displaying_screensaver = False if ticker_stopped: - ticker = pexpect.spawn("sudo -E python3 stockTicker.py") + ticker = pexpect.spawn("sudo -E python3 -W ignore stockTicker.py") ticker_stopped = False #api_caller.sendline('A') @@ -331,7 +331,7 @@ def stop(): if displaying_screensaver: screensaver_p.close() - ticker = pexpect.spawn("sudo -E python3 stockTicker.py") + ticker = pexpect.spawn("sudo -E python3 -W ignore stockTicker.py") #api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 api_caller.py") #api_caller = pexpect.spawn("sudo -E taskset -c 3 python3 database_caller.py") displaying_screensaver = False