diff --git a/ckan/controllers/package.py b/ckan/controllers/package.py index 46bb986e90f..b19294754f3 100644 --- a/ckan/controllers/package.py +++ b/ckan/controllers/package.py @@ -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