Skip to content

Commit

Permalink
Update dlt/sources/rest_api/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Burnashev <[email protected]>
  • Loading branch information
joscha and burnash authored Nov 26, 2024
1 parent d065d0f commit c3f1834
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dlt/sources/rest_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,7 @@ def _validate_config(config: RESTAPIConfig) -> None:
for resource in resources:
if isinstance(resource, (str, DltResource)):
continue
if "endpoint" in resource:
endpoint = resource.get("endpoint")
if endpoint := resource.get("endpoint"):
if not isinstance(endpoint, str):
auth = endpoint.get("auth")
if auth:
Expand Down

0 comments on commit c3f1834

Please sign in to comment.