Update statushandler.py
This commit is contained in:
parent
56c93ac0de
commit
45f9ba3c66
@ -4,7 +4,7 @@ import sys
|
|||||||
import json
|
import json
|
||||||
import urllib2
|
import urllib2
|
||||||
|
|
||||||
class I3statusHandler:
|
class I3statusHandler(object):
|
||||||
modules = []
|
modules = []
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@ -69,4 +69,4 @@ def has_internet_connection():
|
|||||||
response=urllib2.urlopen('http://74.125.113.99',timeout=1)
|
response=urllib2.urlopen('http://74.125.113.99',timeout=1)
|
||||||
return True
|
return True
|
||||||
except urllib2.URLError as err: pass
|
except urllib2.URLError as err: pass
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user