chore(looker): reduce verbosity if error during initialization (#13331)

This commit is contained in:
Sergio Gómez Villamor 2025-04-28 13:11:58 +02:00 committed by GitHub
parent e143422d2d
commit 312e1ff573
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -113,7 +113,7 @@ class LookerAPI:
)
except SDKError as e:
raise ConfigurationError(
f"Failed to connect/authenticate with looker - check your configuration: {e}"
"Failed to connect/authenticate with looker - check your configuration"
) from e
self.client_stats = LookerAPIStats()

View File

@ -497,7 +497,13 @@ class LookMLSource(StatefulIngestionSourceBase):
f"Failed to find a project name for model {model_name}"
)
return model.project_name
except SDKError:
except SDKError as e:
self.reporter.failure(
title="Failed to find a project name for model",
message="Consider configuring a static project name in your config file",
context=str(dict(model_name=model_name)),
exc=e,
)
raise ValueError(
f"Could not locate a project name for model {model_name}. Consider configuring a static project name "
f"in your config file"