Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Geocoder plugin: UnboundLocalError #120

Open
mklaber opened this issue Mar 22, 2019 · 0 comments
Open

Geocoder plugin: UnboundLocalError #120

mklaber opened this issue Mar 22, 2019 · 0 comments
Assignees

Comments

@mklaber
Copy link

mklaber commented Mar 22, 2019

If an exception occurs after the try but before loc declaration here, the catch fails with:

[15:11:22] [INFO] [dku.utils]  - *************** Recipe code failed **************
[15:11:22] [INFO] [dku.utils]  - Begin Python stack
[15:11:22] [INFO] [dku.utils]  - Traceback (most recent call last):
[15:11:22] [INFO] [dku.utils]  -   File "/mnt/secondary/dataiku_data/jobs/some_project/custom-python-recipe/pyout10LvN4CWhlPW/python-exec-wrapper.py", line 6, in <module>
[15:11:22] [INFO] [dku.utils]  -     exec(f.read())
[15:11:22] [INFO] [dku.utils]  -   File "<string>", line 192, in <module>
[15:11:22] [INFO] [dku.utils]  -   File "<string>", line 158, in main
[15:11:22] [INFO] [dku.utils]  -   File "<string>", line 126, in perform_geocode_batch
[15:11:22] [INFO] [dku.utils]  - UnboundLocalError: local variable 'loc' referenced before assignment

This renders line 111's raise useless.

@ghost ghost self-assigned this Jun 18, 2019
@du-phan du-phan assigned du-phan and unassigned ghost Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants