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

ValueError: day is out of range for month #46

Closed
LeBenLeBen opened this issue Jul 31, 2014 · 2 comments
Closed

ValueError: day is out of range for month #46

LeBenLeBen opened this issue Jul 31, 2014 · 2 comments

Comments

@LeBenLeBen
Copy link

I have the latest version and today when I tried editing the file, I got the following error:

Traceback (most recent call last):
  File "/usr/local/bin/taxi", line 4, in <module>
    app.main()
  File "/usr/local/lib/python2.7/site-packages/taxi/app.py", line 178, in main
    app.run()
  File "/usr/local/lib/python2.7/site-packages/taxi/app.py", line 61, in run
    self.run_command(args[0], options.__dict__, command_args)
  File "/usr/local/lib/python2.7/site-packages/taxi/app.py", line 165, in run_command
    action.run()
  File "/usr/local/lib/python2.7/site-packages/taxi/commands.py", line 452, in run
    timesheet_collection = self.get_timesheet_collection()
  File "/usr/local/lib/python2.7/site-packages/taxi/commands.py", line 52, in get_timesheet_collection
    int(self.settings.get('nb_previous_files'))
  File "/usr/local/lib/python2.7/site-packages/taxi/commands.py", line 123, in get_files
    file_date = file_date.replace(month=file_date.month - 1)
ValueError: day is out of range for month

My last entry was on 30/07/2014 and everything was committed. I did something wrong?

@krtek4
Copy link
Collaborator

krtek4 commented Jul 31, 2014

I made a quick fix for this in commit 09ce761

Not sure it still works as it suppose to do, but at least we can now edit our timesheets ;)

@sephii
Copy link
Owner

sephii commented Jul 31, 2014

Good catch, thanks.

@sephii sephii closed this as completed Jul 31, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants