Skip to content

Commit

Permalink
Merge pull request #1685 from ckan/dataset-resources-notfound
Browse files Browse the repository at this point in the history
Catch NotFound error in resources page
  • Loading branch information
joetsoi committed Jun 26, 2014
2 parents 00413b1 + 8a5f4f3 commit 947737b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/controllers/package.py
Expand Up @@ -316,6 +316,8 @@ def resources(self, id):

try:
check_access('package_update', context, data_dict)
except NotFound:
abort(404, _('Dataset not found'))
except NotAuthorized, e:
abort(401, _('User %r not authorized to edit %s') % (c.user, id))
# check if package exists
Expand Down

0 comments on commit 947737b

Please sign in to comment.