Skip to content

Commit ef2a48c

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

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

web_programming/crypto_price.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@
1818

1919
def get_eth_price_usd() -> float:
2020
"""Fetch the current ETH price in USD."""
21-
return httpx2.get(COINGECKO_URL, timeout=10).raise_for_status().json()["ethereum"]["usd"]
21+
return (
22+
httpx2.get(COINGECKO_URL, timeout=10)
23+
.raise_for_status()
24+
.json()["ethereum"]["usd"]
25+
)
2226

2327

2428
def eth_to_usd(eth_amount: float) -> float:

0 commit comments

Comments
 (0)