From 768589ed4807682b37b39fe65645a30a6782037d Mon Sep 17 00:00:00 2001 From: Ghost <62809003+Ghost6446@users.noreply.github.com> Date: Fri, 12 Apr 2024 18:09:28 +0200 Subject: [PATCH] Fix domain not update --- Src/Api/site.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Src/Api/site.py b/Src/Api/site.py index e720dbe..11be185 100644 --- a/Src/Api/site.py +++ b/Src/Api/site.py @@ -147,7 +147,7 @@ def test_site(domain: str) -> str: console.print(f"[cyan]Make request site to {site_url} [white]...") try: - response = requests.get(site_url, headers={'user-agent': get_headers()}) + response = requests.get(site_url, headers={'user-agent': get_headers()}, timeout=4) console.print(f"[green]Request response [white]=> [red]{response.status_code} \n") response.raise_for_status() @@ -159,7 +159,6 @@ def test_site(domain: str) -> str: except Exception as e: console.log("[red]Try again in 10 minutes.") logging.error(f"Error testing site: {e}, changing DOMAIN ...") - raise def get_version(text: str) -> str: