Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 81d1bfa

Browse files
committed
Merge branch 'github-3980-datastore-upload-error' of https://github.com/ThrawnCA/ckan into ThrawnCA-github-3980-datastore-upload-error
2 parents a405849 + 94b9540 commit 81d1bfa

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

ckan/lib/helpers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2451,7 +2451,11 @@ def resource_view_get_fields(resource):
24512451
'limit': 0,
24522452
'include_total': False,
24532453
}
2454-
result = logic.get_action('datastore_search')({}, data)
2454+
import ckan.plugins as p
2455+
try:
2456+
result = logic.get_action('datastore_search')({}, data)
2457+
except p.toolkit.ObjectNotFound:
2458+
return []
24552459

24562460
fields = [field['id'] for field in result.get('fields', [])]
24572461

0 commit comments

Comments
 (0)