Skip to content

Commit

Permalink
style: use default for get
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha committed Nov 21, 2024
1 parent 8892998 commit 1bf1fe7
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions dlt/sources/rest_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,11 @@ 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
_mask_client_config_auth(resource.get("client"))
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 1bf1fe7

Please sign in to comment.