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)

Change History (1)

comment:1 Changed 17 years ago by Jirka Vejrazka

Resolution: duplicate
Status: newclosed

I just noticed that someone has created a similar ticket - marking this one as a duplicate...

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain dagomez.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.