datopian / ckanext-versioning

Deprecated. See https://github.com/datopian/ckanext-versions. ⏰ CKAN extension providing data versioning (metadata and files) based on git and github.
https://tech.datopian.com/versioning/
GNU Affero General Public License v3.0
7 stars 4 forks source link

Don’t blow up when showing a dataset that is not in metastore #40

Closed shevron closed 4 years ago

shevron commented 4 years ago

This is a small fix that gracefully handles Not Found errors thrown by metastore-lib.

While we are expected to see more issues if the dataset is not in metastore when editing, deleting or listing tags for a package, at least viewing it will work. In addition, it seemed to me that there was an intention for this to gracefully degrade because there is a try/catch around fetch in plugin.py but it catches the wrong exception.