Skip to content

Commit

Permalink
Update downloads/views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee authored Sep 16, 2024
1 parent 97624b5 commit c3d1102
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions downloads/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,7 @@ def items(self) -> list[dict[str, Any]]:

@staticmethod
def _fetch_releases(url: str) -> list[dict[str, Any]]:
"""Grabs the latest Python releases from API.
"""
"""Grabs the latest Python releases from API."""
response = requests.get(url, timeout=10)
response.raise_for_status()
data = response.json()
Expand Down

0 comments on commit c3d1102

Please sign in to comment.