chore: add timeout to request

This commit is contained in:
Sriram Veeraghanta
2025-08-06 00:35:19 +05:30
parent 60541adfcf
commit 2f4b5c90d2

View File

@@ -36,7 +36,8 @@ class Command(BaseCommand):
def check_for_latest_version(self, fallback_version):
try:
response = requests.get(
"https://api.github.com/repos/makeplane/plane/releases/latest"
"https://api.github.com/repos/makeplane/plane/releases/latest",
timeout=10,
)
response.raise_for_status()
data = response.json()