Skip to content

Commit

Permalink
[#267] Stop new error related to organisation
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Mar 11, 2013
1 parent 4a9d9ed commit 39b059d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/search/index.py
Expand Up @@ -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'])


Expand Down

0 comments on commit 39b059d

Please sign in to comment.