5-a-day doesnt create ~/.5-a-day-<lp id> directory when run with --add-team

Bug #255421 reported by Aanjhan Ranganathan
2
Affects Status Importance Assigned to Milestone
five-a-day
Fix Released
Undecided
Unassigned

Bug Description

After installing 5-a-day and adding my LP Id, I tried adding a team using the --add-team . It failed with the below error message.

Traceback (most recent call last):
  File "/usr/bin/5-a-day", line 62, in <module>
    sys.exit(main())
  File "/usr/bin/5-a-day", line 39, in main
    if files.add_teams(args[1:]):
  File "/usr/lib/python2.5/site-packages/fiveaday/files.py", line 169, in add_teams
    set_teams(current_teams)
  File "/usr/lib/python2.5/site-packages/fiveaday/files.py", line 159, in set_teams
    f = open(team_file(), "w")
IOError: [Errno 2] No such file or directory: '/home/tuxmaniac/.5-a-day-aanjhan/team'

This seems to be because the ~/.5-a-day-aanjhan/ directory was not created. From discussions at #ubuntu-bugs , I figured out that this will get created only after the first run of --add-bug . I think it should create this directory even during a first run of --add-team

Revision history for this message
Daniel Holbach (dholbach) wrote :

Fixed in 0.47.

Changed in five-a-day:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.