Skip to content

Commit 3eed96c

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent aa63803 commit 3eed96c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web_programming/current_stock_price.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ def stock_price(symbol: str = "AAPL") -> str:
2727
url, headers={"USER-AGENT": "Mozilla/5.0"}, timeout=10
2828
).text
2929
except requests.exceptions.RequestException:
30-
return '- '
30+
return "- "
3131

3232
soup = BeautifulSoup(yahoo_finance_source, "html.parser")
3333

3434
if specific_fin_streamer_tag := soup.find("span", {"data-testid": "qsp-price"}):
3535
return specific_fin_streamer_tag.get_text()
36-
return '- '
36+
return "- "
3737

3838

3939
# Search for the symbol at https://finance.yahoo.com/lookup

0 commit comments

Comments
 (0)