Snapshot: full project state
This commit is contained in:
8
deploy/check_net.py
Normal file
8
deploy/check_net.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import urllib.request, socket
|
||||
socket.setdefaulttimeout(8)
|
||||
for url, name in [("https://remoteok.com/api", "remoteok"), ("https://www.google.com", "google")]:
|
||||
try:
|
||||
urllib.request.urlopen(url)
|
||||
print(name, "OK")
|
||||
except Exception as e:
|
||||
print(name, "FAIL ->", type(e).__name__)
|
||||
Reference in New Issue
Block a user