Skip to content

Commit

Permalink
services: clean up the code
Browse files Browse the repository at this point in the history
  • Loading branch information
anikachurilova committed Jul 19, 2024
1 parent 6c484cb commit 4647343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_records_resources/services/records/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def read(self, identity, id_, expand=False, action="read"):
record = self.record_cls.pid.resolve(id_)
try:
self.require_permission(identity, action, record=record)
except PermissionDeniedError as e:
except PermissionDeniedError:
raise RecordPermissionDeniedError(action_name=action, record=record)
# Run components
for component in self.components:
Expand Down

0 comments on commit 4647343

Please sign in to comment.