Skip to content

Commit

Permalink
Merge branch 'master' of github.com:ckan/ckanext-dcat
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed May 22, 2024
2 parents c27a456 + 9c22b7d commit 6ec5630
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckanext/dcat/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ def read_dataset_page(_id, _format):
try:
response = toolkit.get_action('dcat_dataset_show')({}, {'id': _id,
'format': _format, 'profiles': _profiles})
except toolkit.NotAuthorized:
toolkit.abort(403)
except toolkit.ObjectNotFound:
toolkit.abort(404)
except (toolkit.ValidationError, RDFProfileException) as e:
Expand Down

0 comments on commit 6ec5630

Please sign in to comment.