Skip to content

Commit 0387e7e

Browse files
Add fallback logging for Yahoo in compute_recommendation function
1 parent b4a1f7c commit 0387e7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

automation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ def compute_recommendation(ticker):
195195
except Exception as e:
196196
print(f"Alpaca option chain error: {e}")
197197
if not alpaca_success:
198+
print("Falling back to Yahoo")
198199
# Fallback to Yahoo
199200
try:
200201
stock = yf.Ticker(ticker)

0 commit comments

Comments
 (0)