Skip to content

Commit

Permalink
Fixing unqualified exception use in helpers
Browse files Browse the repository at this point in the history
The function get_organization used unqualified exception types in the except block.
This commit fixes it.
  • Loading branch information
fabiankirstein committed Aug 25, 2015
1 parent 942a824 commit b180c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -2028,7 +2028,7 @@ def get_organization(org=None, include_datasets=False):
return {}
try:
return logic.get_action('organization_show')({}, {'id': org, 'include_datasets': include_datasets})
except (NotFound, ValidationError, NotAuthorized):
except (logic.NotFound, logic.ValidationError, logic.NotAuthorized):
return {}


Expand Down

0 comments on commit b180c71

Please sign in to comment.