We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aee178 commit b7c97b3Copy full SHA for b7c97b3
check_internet_con.py
@@ -12,7 +12,7 @@ def checkInternetConnectivity():
12
try:
13
urlopen("http://google.com", timeout=2)
14
print("Working connection")
15
- except urllib2.URLError as E:
+ except URLError as E:
16
print("Connection error:%s" % E.reason)
17
18
0 commit comments