Skip to content

Commit 68ae418

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎web_programming/crypto_price_tracker.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def crypto_price(coin: str = "bitcoin") -> float:
2525
try:
2626
json_response = httpx2.get(url, timeout=10).raise_for_status().json()
2727
return float(response.json().get(coin, {}).get("usd", 0.0))
28-
except (httpx2.RequestError, ValueError, KeyError):
28+
except httpx2.RequestError, ValueError, KeyError:
2929
return 0.0
3030
return float(json_response.get(coin, {}).get("usd", 0.0))
3131

0 commit comments

Comments
 (0)