Skip to content

Commit b7c97b3

Browse files
authored
Update check_internet_con.py
1 parent 3aee178 commit b7c97b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_internet_con.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def checkInternetConnectivity():
1212
try:
1313
urlopen("http://google.com", timeout=2)
1414
print("Working connection")
15-
except urllib2.URLError as E:
15+
except URLError as E:
1616
print("Connection error:%s" % E.reason)
1717

1818

0 commit comments

Comments
 (0)