def requireInternetAccess(forceCheck=False):
 if (not haveInternetAccess(forceCheck=forceCheck)):
  msg = 'Internet access required but not detected.'
  logging.error(msg)
  raise NoInternetAccessError(msg)
 return True

def requireInternetAccess ( forceCheck = False ) : if ( not haveInternetAccess ( forceCheck = forceCheck ) ) : msg = 'Internet access required but not detected.' logging . error ( msg ) raise NoInternetAccessError ( msg ) return True
checks for access to the internet .