Skip to content

Commit

Permalink
raising error instead of just printing
Browse files Browse the repository at this point in the history
Co-authored-by: Himanshu Aggarwal <[email protected]>
  • Loading branch information
ferponcem and man-shu authored Jul 31, 2024
1 parent 35d6b7d commit 5c15a44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ibc_api/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ def fetch_remote_file(file, remote_root=REMOTE_ROOT, local_root=LOCAL_ROOT):
return local_file

except requests.exceptions.HTTPError as err:
print(f"Error fetching {file}: {err}")
return None
raise(f"Error fetching {file}: {err}")


def fetch_metadata(file="datasets.json"):
Expand Down

0 comments on commit 5c15a44

Please sign in to comment.