Modify ↓
Opened 17 years ago
Closed 17 years ago
#2540 closed defect (duplicate)
bug in rare circumstances
Reported by: | Jirka Vejrazka | Owned by: | dagomez |
---|---|---|---|
Priority: | normal | Component: | StractisticsPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
Hi, I found quite interesting bug :-)
After installing the Stractistics plugin, I got the following error:
... File "build/bdist.linux-i686/egg/stractistics/stractistics.py", line 84, in process_request File "build/bdist.linux-i686/egg/stractistics/stractistics.py", line 116, in _repository_activity File "build/bdist.linux-i686/egg/stractistics/stractistics.py", line 228, in _authors_commit_data KeyError: '07/53'
A bit of digging shown a bug in the _weeks_elapsed function which may skip last week of the year in some cases.
I made a quick fix by changing the timedelta to 1 day instead of 6. Probably not the best solution, but working :)
Attachments (0)
Note: See
TracTickets for help on using
tickets.
I just noticed that someone has created a similar ticket - marking this one as a duplicate...