about summary refs log tree commit diff stats
path: root/src/instances/get_instances.py
diff options
context:
space:
mode:
authorBobIsMyManager <bobismymanager@noreply.codeberg.org>2022-08-03 00:05:49 +0200
committerBobIsMyManager <bobismymanager@noreply.codeberg.org>2022-08-03 00:05:49 +0200
commit449cd43aec71c914fda31582fd38b56580e20948 (patch)
tree9e945576147d04da169a3fd59e1b46c041cc2055 /src/instances/get_instances.py
parentUnify won't save in storage anymore. Fixed Piped Unify (diff)
parentFix simplytranslate and make things prettier (diff)
downloadlibredirect-449cd43aec71c914fda31582fd38b56580e20948.zip
Merge pull request 'Latency threshold and offline instances' (https://codeberg.org/LibRedirect/libredirect/pulls/14) from latency into master
Reviewed-on: https://codeberg.org/LibRedirect/libredirect/pulls/14
Diffstat (limited to 'src/instances/get_instances.py')
-rw-r--r--src/instances/get_instances.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/instances/get_instances.py b/src/instances/get_instances.py
index 07adbceb..eab4a924 100644
--- a/src/instances/get_instances.py
+++ b/src/instances/get_instances.py
@@ -92,7 +92,7 @@ def is_authenticate(url):
 def is_offline(url):
     try:
         r = requests.get(url, timeout=5)
-        if r.status_code != 200:
+        if r.status_code >= 400:
             print(url + ' is ' + Fore.RED + 'offline' + Style.RESET_ALL)
             print("Status code")
             print(r.status_code)