fix black formatting

This commit is contained in:
Adil Hafeez 2026-03-13 00:55:55 -07:00
parent 82a63cc050
commit e659808432
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
2 changed files with 4 additions and 5 deletions

View file

@ -8,7 +8,6 @@ from urllib.parse import urlparse
from copy import deepcopy
from planoai.consts import DEFAULT_OTEL_TRACING_GRPC_ENDPOINT
SUPPORTED_PROVIDERS_WITH_BASE_URL = [
"azure_openai",
"ollama",
@ -504,7 +503,9 @@ def validate_prompt_config(plano_config_file, plano_config_schema_file):
try:
validate(config_yaml, config_schema_yaml)
except ValidationError as e:
path = "".join(str(p) for p in e.absolute_path) if e.absolute_path else "root"
path = (
"".join(str(p) for p in e.absolute_path) if e.absolute_path else "root"
)
raise ValidationError(
f"{e.message}\n Location: {path}\n Value: {e.instance}"
) from None

View file

@ -429,9 +429,7 @@ def native_validate_config(plano_config_file):
# validate_and_render_schema calls exit(1) on failure after
# printing to stdout; re-raise so the caller gets a useful message.
output = captured.getvalue().strip()
raise Exception(output) if output else Exception(
"Config validation failed"
)
raise Exception(output) if output else Exception("Config validation failed")
def native_logs(debug=False, follow=False):