Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change ValueError into RepositoryNotSupportedError #62

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

J535D165
Copy link
Owner

This PR introduces a new error for not supported repositories. This change might be breaking when you catch the ValueError for "Data protocol not found".

import datahugger

try:
    datahugger.get("my_doi", "data")
except datahugger.RepositoryNotSupportedError:
    print("Datahugger doesn't support this resource")
except Exception:
   print("Unexpected error")

@J535D165 J535D165 merged commit 0a97542 into main Sep 15, 2023
8 of 10 checks passed
@J535D165 J535D165 deleted the repo-not-supported-error branch September 15, 2023 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant