forked from GithubBackups/healthchecks
8 lines
183 B
Plaintext
8 lines
183 B
Plaintext
# using requests:
|
|
import requests
|
|
|
|
try:
|
|
requests.get("PING_URL", timeout=10)
|
|
except requests.RequestException as e:
|
|
# Log ping failure here...
|
|
print("Ping failed: %s" % e) |