Skip to content

Commit

Permalink
Handle provider as a string
Browse files Browse the repository at this point in the history
  • Loading branch information
Egor-S committed Oct 27, 2023
1 parent b5ca06d commit 5852515
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gpuhunt/_internal/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ def query(
if self.fill_missing:
query_filter = constraints.fill_missing(query_filter)
# validate providers
if provider is not None:
provider = [p.lower() for p in provider]
for p in provider:
if query_filter.provider is not None:
query_filter.provider = [p.lower() for p in query_filter.provider]
for p in query_filter.provider:
if p not in OFFLINE_PROVIDERS + ONLINE_PROVIDERS:
raise ValueError(f"Unknown provider: {p}")

Expand Down

0 comments on commit 5852515

Please sign in to comment.