crash to black fixed

ignore warnings from PIL python module, preventing buffer from building up in stderr
This commit is contained in:
Justin 2022-06-22 00:54:45 +08:00 committed by GitHub
parent a0ed8a87de
commit 0656b0598e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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