mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-27 09:58:14 +00:00
chore(looker): reduce verbosity if error during initialization (#13331)
This commit is contained in:
parent
e143422d2d
commit
312e1ff573
@ -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()
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user