diff --git a/yf_stock_ticker/yf_stock_ticker.py b/yf_stock_ticker/yf_stock_ticker.py index de62993..3277038 100755 --- a/yf_stock_ticker/yf_stock_ticker.py +++ b/yf_stock_ticker/yf_stock_ticker.py @@ -33,9 +33,8 @@ def get_quotes(symbols): """ Get quotes with yahooquery """ - quotes = Ticker(symbols) - try: + quotes = Ticker(symbols) data = quotes.price except requests.exceptions.ConnectionError: log.warning("Cannot get data")