Skip to content

Commit

Permalink
Throw 404 for non-existent org for bulk_process
Browse files Browse the repository at this point in the history
Fixes #1682
  • Loading branch information
nigelb authored and amercader committed Oct 3, 2014
1 parent bf03a2e commit 74cbd97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/controllers/group.py
Expand Up @@ -353,6 +353,9 @@ def bulk_process(self, id):

group_type = self._get_group_type(id.split('@')[0])

if group_type is None:
abort(404, _('Organization not found'))

if group_type != 'organization':
# FIXME: better error
raise Exception('Must be an organization')
Expand Down

0 comments on commit 74cbd97

Please sign in to comment.