mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-22 13:04:25 +01:00
Update checkInternetConnection function
Not everyone can access google with ease, exp, uses in China Mainland. I changed the check link from https://google.com to https://github.com for a greater compatibility.
This commit is contained in:
parent
a4386905f6
commit
77092773ab
@ -127,7 +127,7 @@ def runDebug():
|
|||||||
# make sure there is an internet connection
|
# make sure there is an internet connection
|
||||||
def checkInternetConnection():
|
def checkInternetConnection():
|
||||||
try:
|
try:
|
||||||
urlopen('https://google.com', timeout=3)
|
urlopen('https://github.com', timeout=3)
|
||||||
return True
|
return True
|
||||||
except URLError as err:
|
except URLError as err:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user