okfn/ckan — comment on commit 32efac407c260899511781573c3e10303c92f0e7
File: ckan/controllers/group.py line 396
By amercader:

model.Group.get() does not raise NotFound exceptions, so on 404s you will get an exception:

File '/home/adria/dev/pyenvs/dgu/src/ckan/ckan/controllers/group.py', line 400 in _get_group_type
return group.type
AttributeError: 'NoneType' object has no attribute 'type'