we need try, except to handle local datastore use

This reverts commit 129aec805528f1cba3c6ac73c7363421d35e38d2.
pep8
Merge branch 'fix-local-datastore' of github.com:wardi/ckan into wardi-fix-local-datastore
Merge branch 'wardi-fix-local-datastore'