Skip to content

Commit

Permalink
[#2375] fix 500 on edit none existant resource
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jul 19, 2012
1 parent 9a165da commit 2f20fd8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/controllers/package.py
Expand Up @@ -526,8 +526,7 @@ def resource_edit(self, id, resource_id, data=None, errors=None,
try:
resource_dict = get_action('resource_show')(context, {'id': resource_id})
except NotFound:
# FIXME need to handle this
pass
abort(404, _('Resource not found'))
c.pkg_dict = pkg_dict
c.resource = resource_dict
# set the form action
Expand Down

0 comments on commit 2f20fd8

Please sign in to comment.