ckanapi icon indicating copy to clipboard operation
ckanapi copied to clipboard

Local Variable referenced before assignment

Open boykoc opened this issue 5 years ago • 0 comments

Reporting for now until I dig in more.

Got this error when doing a dump with --datastore-fields option for a single resource. Haven't figured it out yet, but the dataset that triggered this doesn't have a resource.

res['datastore_fields'] = ds['fields']
UnboundLocalError: local variable 'ds' referenced before assignment

https://github.com/ckan/ckanapi/blob/1a8c3f1f9ca31274c050a6ce3c1fe30e4c305eac/ckanapi/datapackage.py#L133

boykoc avatar Jan 06 '20 15:01 boykoc