Compare commits

..

2 Commits

Author SHA1 Message Date
Suman
0e6f82784f Merge branch 'stock-price-fix' of github.com:Suman2023/Python into stock-price-fix 2023-08-11 16:12:25 +05:30
Suman
f4ae6fde40 updated to return the error text 2023-08-11 16:10:51 +05:30

View File

@ -11,9 +11,7 @@ def stock_price(symbol: str = "AAPL") -> str:
if specific_fin_streamer_tag:
text = specific_fin_streamer_tag.get_text()
return text
else:
print("No <fin-streamer> tag with the specified data-test attribute found.")
return "Not Found"
return "No <fin-streamer> tag with the specified data-test attribute found."
# Search for the symbol at https://finance.yahoo.com/lookup