From 2f20fd87e6fc40c7d8a7d7dd59fb01fa6b3b526d Mon Sep 17 00:00:00 2001 From: tobes Date: Thu, 19 Jul 2012 10:35:41 +0100 Subject: [PATCH] [#2375] fix 500 on edit none existant resource --- ckan/controllers/package.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ckan/controllers/package.py b/ckan/controllers/package.py index 2c761700425..562fee6f7a0 100644 --- a/ckan/controllers/package.py +++ b/ckan/controllers/package.py @@ -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