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']))