Skip to content

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

@jayvdb

Description

@jayvdb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions