From 39b059da512512800aacdfd0d47975ae55aa3792 Mon Sep 17 00:00:00 2001 From: tobes Date: Mon, 11 Mar 2013 14:40:43 +0000 Subject: [PATCH] [#267] Stop new error related to organisation --- ckan/lib/search/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/lib/search/index.py b/ckan/lib/search/index.py index 732d92c1258..f608f14e9d3 100644 --- a/ckan/lib/search/index.py +++ b/ckan/lib/search/index.py @@ -157,7 +157,7 @@ def index_package(self, pkg_dict, defer_commit=False): # if there is an owner_org we want to add this to groups for index # purposes - if pkg_dict['organization']: + if pkg_dict.get('organization'): pkg_dict['groups'].append(pkg_dict['organization']['name'])