[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
If an exception occurs after the
trybut beforelocdeclaration here, thecatchfails with:This renders line 111's
raiseuseless.