diff --git a/web_programming/current_stock_price.py b/web_programming/current_stock_price.py index dfce457e1..51a0cce9f 100644 --- a/web_programming/current_stock_price.py +++ b/web_programming/current_stock_price.py @@ -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 tag with the specified data-test attribute found.") - return "Not Found" + return "No tag with the specified data-test attribute found." # Search for the symbol at https://finance.yahoo.com/lookup if __name__ == "__main__":