diff --git a/stockTicker.py b/stockTicker.py index 4d70d6c..b634da4 100755 --- a/stockTicker.py +++ b/stockTicker.py @@ -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())