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

UnboundLocalError: local variable 'scenario' referenced before assignment #145

Closed
vicente23 opened this issue Nov 16, 2022 · 0 comments · Fixed by #148
Closed

UnboundLocalError: local variable 'scenario' referenced before assignment #145

vicente23 opened this issue Nov 16, 2022 · 0 comments · Fixed by #148
Assignees
Labels
bug Something isn't working

Comments

@vicente23
Copy link

By default, qgis-deployment-toolbelt launches the scenario.qdt.yml.

If it is missing from the directory where the utility is launched, the following error appears:

File "/home/vincent/QGIS_Deployment_Toolbelt/venv/lib/python3.10/site-packages/qgis_deployment_toolbelt/cli.py", line 196, in qgis_deployment_toolbelt
    elif cli_context.invoked_subcommand is None and not Path(scenario).is_file():
UnboundLocalError: local variable 'scenario' referenced before assignment

You should use the scenario_path variable instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants