diff options
author | BobIsMyManager <bobismymanager@noreply.codeberg.org> | 2022-08-03 00:05:49 +0200 |
---|---|---|
committer | BobIsMyManager <bobismymanager@noreply.codeberg.org> | 2022-08-03 00:05:49 +0200 |
commit | 449cd43aec71c914fda31582fd38b56580e20948 (patch) | |
tree | 9e945576147d04da169a3fd59e1b46c041cc2055 /src/instances/get_instances.py | |
parent | Unify won't save in storage anymore. Fixed Piped Unify (diff) | |
parent | Fix simplytranslate and make things prettier (diff) | |
download | libredirect-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.py | 2 |
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) |