Skip to content

Commit

Permalink
Address PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud committed Jan 25, 2021
1 parent 3c5ab2f commit 526c5e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset/connectors/connector_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ def register_sources(cls, datasource_config: "OrderedDict[str, List[str]]") -> N
def get_datasource(
cls, datasource_type: str, datasource_id: int, session: Session
) -> "BaseDatasource":
"""Safely get a datasource without raising any errors.
Returns None if `datasource_type` is not registered or `datasource_id` does
not exists."""
"""Safely get a datasource instance, raises `DatasetNotFoundError` if
`datasource_type` is not registered or `datasource_id` does not
exist."""
if datasource_type not in cls.sources:
raise DatasetNotFoundError()

Expand Down

0 comments on commit 526c5e4

Please sign in to comment.