Update stockTicker.py

This commit is contained in:
Justin 2023-03-30 13:15:43 +08:00 committed by GitHub
parent cd1e45feb6
commit fe293edfae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1861,13 +1861,16 @@ class StockTicker():
except:
pass
if all_stocks_settings['prepost']:
try:
f = open('csv/prepost_settings.json', 'r')
prepost_settings = json.load(f)
f.close()
except:
pass
try:
if all_stocks_settings['prepost']:
try:
f = open('csv/prepost_settings.json', 'r')
prepost_settings = json.load(f)
f.close()
except:
pass
except:
pass
stock_info = all_stocks_settings['symbols']
symbols = list(stock_info.keys())