sitron / lst

3 stars 3 forks source link

KeyError: 'sprints' when trying to add a sprint #2

Closed sephii closed 11 years ago

sephii commented 11 years ago

On a freshly installed 1.0.0, when trying to add a new sprint:

(lst)sylvain@midgar ~ lst add-sprint
Reading config
Give me a nickname for your sprint (no special chars): vca8
Give me the number of commited man days for this sprint: 30
Give me the sprint start date (as 2013.02.25): 2013.04.03
Give me the sprint end date (as 2013.02.25): 2013.04.18
Give me the zebra project id (if you use Taxi, just do `taxi search client_name` else check in Zebra. It should be a four digit integer): 1590
Give me the jira id of any story in your sprint (something like 'jlc-110'): vca-178
Traceback (most recent call last):
  File "/home/sylvain/.virtualenvs/lst/bin/lst", line 4, in <module>
    lst.Lst()
  File "/home/sylvain/.virtualenvs/lst/local/lib/python2.7/site-packages/lst/__init__.py", line 67, in __init__
    action.run(args)
  File "/home/sylvain/.virtualenvs/lst/local/lib/python2.7/site-packages/lst/commands.py", line 72, in run
    AppContainer.config.create_sprint(name, sprint)
  File "/home/sylvain/.virtualenvs/lst/local/lib/python2.7/site-packages/lst/parser.py", line 59, in create_sprint
    self.data['sprints'][name] = sprint
KeyError: 'sprints'
sitron commented 11 years ago

Do you have anything in your .lst.yml file (in your home)? can you please empty it and retry? thanks

sephii commented 11 years ago

It worked thanks. I guess I had a .lst.yml file from a previous version of lst.