5-a-day doesnt create ~/.5-a-day-<lp id> directory when run with --add-team
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.
File "/usr/bin/5-a-day", line 39, in main
if files.add_
File "/usr/lib/
set_
File "/usr/lib/
f = open(team_file(), "w")
IOError: [Errno 2] No such file or directory: '/home/
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
Fixed in 0.47.