Use ConfigError instead of ValueError.