From b180c71f37891482c8ed7e7b58c3a3279fdf7d65 Mon Sep 17 00:00:00 2001 From: Fabian Kirstein Date: Tue, 25 Aug 2015 10:47:51 +0200 Subject: [PATCH] Fixing unqualified exception use in helpers The function get_organization used unqualified exception types in the except block. This commit fixes it. --- ckan/lib/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/lib/helpers.py b/ckan/lib/helpers.py index 200b294286d..8db9d07fc6e 100644 --- a/ckan/lib/helpers.py +++ b/ckan/lib/helpers.py @@ -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 {}