Exceptions now raise correctly and changed the import of the library. Now we import exceptions from ckan.plugins.toolkit