We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ceb31b3 commit 7ae4062Copy full SHA for 7ae4062
ckanapi/datapackage.py
@@ -6,7 +6,7 @@
6
import slugify
7
8
from ckanapi.cli.utils import pretty_json
9
-from ckanapi.errors import CKANAPIError
+from ckanapi.errors import CKANAPIError, NotFound
10
11
DL_CHUNK_SIZE = 100 * 1024
12
DATAPACKAGE_TYPES = { # map datastore types to datapackage types
@@ -129,7 +129,9 @@ def populate_datastore_res_fields(ckan, res):
129
'resource_id': res['id'],
130
'limit':0})
131
except CKANAPIError:
132
- pass
+ return
133
+ except NotFound:
134
+ return # with localckan we'll get the real CKAN exception not a CKANAPIError subclass
135
res['datastore_fields'] = ds['fields']
136
137
0 commit comments