Skip to content

Commit

Permalink
Update dlt/sources/rest_api/__init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha authored Nov 21, 2024
1 parent 8892998 commit 281b61f
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions dlt/sources/rest_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,10 @@ def paginate_dependent_resource(
def _validate_config(config: RESTAPIConfig) -> None:
c = deepcopy(config)
_mask_client_config_auth(c.get("client"))
resources = c.get("resources")
if resources:
for resource in resources:
if isinstance(resource, str) or isinstance(resource, DltResource):
continue
resources = c.get("resources", [])
for resource in resources:
if isinstance(resource, str) or isinstance(resource, DltResource):
continue
_mask_client_config_auth(resource.get("client"))
validate_dict(RESTAPIConfig, c, path=".")

Expand Down

0 comments on commit 281b61f

Please sign in to comment.