Skip to content

Commit 0365bd1

Browse files
committed
fix to a constant
1 parent 31c4f24 commit 0365bd1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

utils/notify_slack_about_release.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
import requests
1919

20-
from ..src.diffusers.utils.constants import DIFFUSERS_REQUEST_TIMEOUT
21-
2220

2321
# Configuration
2422
LIBRARY_NAME = "diffusers"
@@ -28,7 +26,7 @@
2826

2927
def check_pypi_for_latest_release(library_name):
3028
"""Check PyPI for the latest release of the library."""
31-
response = requests.get(f"https://pypi.org/pypi/{library_name}/json", timeout=DIFFUSERS_REQUEST_TIMEOUT)
29+
response = requests.get(f"https://pypi.org/pypi/{library_name}/json", timeout=60)
3230
if response.status_code == 200:
3331
data = response.json()
3432
return data["info"]["version"]
@@ -40,7 +38,7 @@ def check_pypi_for_latest_release(library_name):
4038
def get_github_release_info(github_repo):
4139
"""Fetch the latest release info from GitHub."""
4240
url = f"https://api.github.com/repos/{github_repo}/releases/latest"
43-
response = requests.get(url, timeout=DIFFUSERS_REQUEST_TIMEOUT)
41+
response = requests.get(url, timeout=60)
4442

4543
if response.status_code == 200:
4644
data = response.json()

0 commit comments

Comments
 (0)