code: def CheckLocation():
    
    for url in (config.CONFIG["Client.server_urls"] +
                config.CONFIG["Client.control_urls"]):
      if "staging" in url or "localhost" in url:
        # This is ok.
        return
    logging.error("Poolclient should only be run against test or staging.")
    exit()
docs: Checks that the poolclient is not accidentally ran against production.