Skip to content

Commit

Permalink
Only warn if iids were not parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
jbusecke authored Apr 30, 2024
1 parent ed4bd7e commit f12dbfc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pangeo_forge_esgf/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def parse_instance_ids(
no_result_iids: List[str] = []
for iid in split_iids:
for node in search_nodes:
print(f"{node=}")
facets = facets_from_iid(iid)
facets_filtered = {
k: v for k, v in facets.items() if v != "*"
Expand All @@ -100,5 +99,6 @@ def parse_instance_ids(
parsed_iids.extend(iids_from_request)
except Exception as e:
print(f"Request for {iid=} to {node=} failed with {e}")
warnings.warn(f"No parsed results for {no_result_iids=}", UserWarning)
if len(no_results_iids)>0:
warnings.warn(f"No parsed results for {no_result_iids=}", UserWarning)
return list(set(parsed_iids))

0 comments on commit f12dbfc

Please sign in to comment.