fix: Remove useless debug information. (#7647)

This commit is contained in:
Zhi 2024-08-26 20:40:26 +08:00 committed by GitHub
commit b7ff98d7ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,7 +26,6 @@ def load_yaml_file(file_path: str, ignore_error: bool = True, default_value: Any
raise YAMLError(f'Failed to load YAML file {file_path}: {e}')
except Exception as e:
if ignore_error:
logger.debug(f'Failed to load YAML file {file_path}: {e}')
return default_value
else:
raise e