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

@jayvdb jayvdb added this to back-log in 0.7.x Jan 19, 2019
@jayvdb jayvdb added this to the 0.4.0 milestone Jan 24, 2019
@jayvdb jayvdb pinned this issue Jan 24, 2019
@chfw chfw added the bug label Jan 24, 2019
@chfw chfw moved this from back-log to in-progress in 0.7.x Jan 25, 2019
@chfw chfw closed this as completed in #182 Jan 26, 2019
@chfw chfw moved this from in-progress to done in 0.7.x Jan 26, 2019
@jayvdb jayvdb unpinned this issue Jan 28, 2019
@chfw chfw moved this from done to released in 0.7.x Feb 3, 2019
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