qgao007 commited on
Commit
d35e101
1 Parent(s): 6a03277

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -22,13 +22,18 @@ print("Your Computer IP Address is:"+IPAddr)
22
  url = "https://146.152.226.61"
23
 
24
  # subprocess.run(["curl", "ipinfo.io"])
25
-
26
- resp1 = requests.get("http://3.231.107.102")
27
- print(resp1.status_code)
28
- print(resp1.text)
29
- print('Okay, I can connect to aws free test server.')
 
 
 
 
30
 
31
  while True:
 
32
  try:
33
  resp2 = requests.get(url)
34
  if resp2.status_code == 200:
 
22
  url = "https://146.152.226.61"
23
 
24
  # subprocess.run(["curl", "ipinfo.io"])
25
+ # test aws free server first
26
+ try:
27
+ resp1 = requests.get("http://3.231.107.102")
28
+ if resp1.status_code == 200:
29
+ print(resp1.status_code)
30
+ print(resp1.text)
31
+ print('Okay, I can connect to aws free test server.')
32
+ except:
33
+ print('The app is having issues! please check first!')
34
 
35
  while True:
36
+ print('Begining access to the almighty Intel DevCloud.......')
37
  try:
38
  resp2 = requests.get(url)
39
  if resp2.status_code == 200: