Update stockTicker.py

This commit is contained in:
Justin
2023-03-30 13:15:43 +08:00
committed by GitHub
parent cd1e45feb6
commit fe293edfae

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())