Skip to content

Commit

Permalink
Fix linter error due to missing concrete exception in except clause
Browse files Browse the repository at this point in the history
  • Loading branch information
led02 committed Dec 21, 2023
1 parent cd458ba commit 3029b00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hermes/commands/deposit/invenio_rdm.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

import typing as t

from requests import HTTPError

from hermes.commands.deposit.invenio import (
InvenioClient,
InvenioDepositPlugin,
Expand Down Expand Up @@ -46,7 +48,7 @@ def resolve_license_id(self, license_url: t.Optional[str]) -> t.Optional[dict]:
# First try to resolve using the simple way that worked well with Zenodo before InvenioRDM
try:
return super().resolve_license_id(license_url)
except:
except HTTPError:
pass

# If the easy "mapping" did not work, we really need to "search" for the correct license ID.
Expand Down

0 comments on commit 3029b00

Please sign in to comment.