netstatus.py.org netstatus.py --- netstatus.py.org 2012-08-03 05:27:37.913582505 +0000 +++ netstatus.py 2012-08-03 05:44:54.645406601 +0000 @@ -145,7 +145,7 @@ NETWORK_STATE = NetState.NM_STATE_DISCONNECTED else: # get a host to ping - host = urlparse(source_list.list[0].uri)[1] + host = urlparse(source_list.list[0].uri).hostname msg = ("Attempting one time ping of %s to test if internet " "connectivity exists." % host) logging.info(msg)