Changing saving behavior for server that is not reachable

This commit is contained in:
Patrick Müller 2021-03-18 18:21:45 +01:00
parent 898a0ba42d
commit e0036fa352

View File

@ -23,7 +23,7 @@ def runPings():
if ping != -1: if ping != -1:
resTuple = (server['server_id'], True, ping) resTuple = (server['server_id'], True, ping)
else: else:
resTuple = (server['server_id'], False, None) resTuple = (server['server_id'], False, ping)
telegram.sendMessage(users[server['admin_id']]['telegram_id'], ( telegram.sendMessage(users[server['admin_id']]['telegram_id'], (
'Your server {} ({}) is not reachable at the moment. Maybe give it a check.' 'Your server {} ({}) is not reachable at the moment. Maybe give it a check.'
).format(server['name'], server['hostname'])) ).format(server['name'], server['hostname']))