ckan / ckan/ckanapi

Local Variable referenced before assignment

Open
#151 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
212
Forks
81
PR merge metrics
No merged PRs in 30d

Description

**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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.