Skip to content

Commit

Permalink
fix: fetch_url typing
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato committed Oct 21, 2024
1 parent 2985421 commit 6984ef4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eodag/plugins/search/qssearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,13 @@ def discover_product_types_per_page(
prep = PreparedSearch()

# url from discover_product_types() or conf
fetch_url = kwargs.get("fetch_url")
fetch_url: Optional[str] = kwargs.get("fetch_url")
if fetch_url is None:
if fetch_url := self.config.discover_product_types.get("fetch_url"):
fetch_url = fetch_url.format(**self.config.__dict__)
else:
return None
prep.url = fetch_url

# get auth if available
if "auth" in kwargs:
Expand Down

0 comments on commit 6984ef4

Please sign in to comment.