code: def get_conf_file(self):
          
          for conf_file in [self.collection_rules_file, self.fallback_file]:
              logger.debug("trying to read conf from: " + conf_file)
              conf = self.try_disk(conf_file, self.gpg)
  
              if not conf:
                  continue
  
              version = conf.get('version', None)
              if version is None:
                  raise ValueError("ERROR: Could not find version in json")
  
              conf['file'] = conf_file
              logger.debug("Success reading config")
              logger.debug(json.dumps(conf))
              return conf
  
          raise ValueError("ERROR: Unable to download conf or read it from disk!")
docs: Get config from local config file, first try cache, then fallback.