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 'target' referenced before assignment #178

Closed
jayvdb opened this issue Jan 19, 2019 · 0 comments · Fixed by #182
Closed

UnboundLocalError: local variable 'target' referenced before assignment #178

jayvdb opened this issue Jan 19, 2019 · 0 comments · Fixed by #182
Labels
Milestone

Comments

@jayvdb
Copy link
Member

jayvdb commented Jan 19, 2019

I accidentally added templates/ first, and boom..

>  moban -t templates/coafile.jj2
Warning: templates/coafile.jj2 is not defined in your moban file!
Traceback (most recent call last):
  File "/usr/bin/moban", line 11, in <module>
    load_entry_point('moban==0.3.8', 'console_scripts', 'moban')()
  File "/usr/lib/python3.6/site-packages/moban/main.py", line 36, in main
    count = handle_moban_file(moban_file, options)
  File "/usr/lib/python3.6/site-packages/moban/main.py", line 142, in handle_moban_file
    mobanfile.handle_moban_file_v1(moban_file_configurations, options)
  File "/usr/lib/python3.6/site-packages/moban/mobanfile.py", line 75, in handle_moban_file_v1
    if target:
UnboundLocalError: local variable 'target' referenced before assignment

Possibly related to #176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants