From e0036fa3526730921815356566e9458ddcb84d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=BCller?= Date: Thu, 18 Mar 2021 18:21:45 +0100 Subject: [PATCH] Changing saving behavior for server that is not reachable --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 62182f6..53a981e 100644 --- a/main.py +++ b/main.py @@ -23,7 +23,7 @@ def runPings(): if ping != -1: resTuple = (server['server_id'], True, ping) else: - resTuple = (server['server_id'], False, None) + resTuple = (server['server_id'], False, ping) telegram.sendMessage(users[server['admin_id']]['telegram_id'], ( 'Your server {} ({}) is not reachable at the moment. Maybe give it a check.' ).format(server['name'], server['hostname']))