Skip to content

Commit 579a8ce

Browse files
committed
Raise the exception instead of just logging the error
1 parent 5812aa6 commit 579a8ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yfinance/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def _fetch_ticker_tz(self, timeout):
158158
raise
159159
except Exception as e:
160160
logger.error(f"Failed to get ticker '{self.ticker}' reason: {e}")
161-
return None
161+
raise
162162
else:
163163
error = data.get('chart', {}).get('error', None)
164164
if error:

0 commit comments

Comments
 (0)