diff --git a/ckanext/d4science/views_routes/organization.py b/ckanext/d4science/views_routes/organization.py
index 0c5b94a..69162d7 100644
--- a/ckanext/d4science/views_routes/organization.py
+++ b/ckanext/d4science/views_routes/organization.py
@@ -9,7 +9,6 @@ import ckan.lib.helpers as h
 import ckan.lib.search as search
 from ckan.common import _
 from collections import OrderedDict
-from ckan.logic import NotAuthorized, NotFound
 
 organization_vre = Blueprint("organization_vre", __name__)
 
@@ -53,7 +52,7 @@ def index():
     try:
         logic.check_access('site_read', context)
         logic.check_access('group_list', context)
-    except NotAuthorized:
+    except logic.NotAuthorized:
         abort(403, _('Not authorized to see this page'))
     # pass user info to context as needed to view private datasets of
     # orgs correctly
@@ -111,7 +110,7 @@ def read(id, limit=20):
         data_dict['include_datasets'] = False
         g.group_dict = logic.get_action('group_show')(context, data_dict)
         g.group = context['group']
-    except (NotFound, NotAuthorized):
+    except (logic.NotFound, logic.NotAuthorized):
         abort(404, _('Group not found'))
     
     #read(id, limit, group_type)