Skip to content

Commit

Permalink
Fix resolver with unknown Re3Data software (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 authored Sep 14, 2023
1 parent 2972fca commit 025fd7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion datahugger/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,7 @@ def _resolve_service_with_re3data(doi):
if publisher.lower() == repo["name"].lower():
r_software = get_re3data_repository(repo["id"])

return RE3DATA_SOFTWARE[r_software.lower()]
try:
return RE3DATA_SOFTWARE[r_software.lower()]
except KeyError:
return None

0 comments on commit 025fd7f

Please sign in to comment.