Skip to content

Commit

Permalink
Merge pull request #1806 from puntonim/ticker-history-exc-hook
Browse files Browse the repository at this point in the history
Ticker.history() to raise HTTP request excs if raise_errors args is True
  • Loading branch information
ValueRaider authored Dec 31, 2023
2 parents c053e2c + c94cbb6 commit 7e6ad08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yfinance/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def history(self, period="1mo", interval="1d",

data = data.json()
except Exception:
pass
if raise_errors:
raise

# Store the meta data that gets retrieved simultaneously
try:
Expand Down

0 comments on commit 7e6ad08

Please sign in to comment.