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:
ylink 2018-09-23 13:40:13 +08:00 committed by GitHub
parent a4386905f6
commit 77092773ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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