Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#3588 closed defect (fixed)

AttributeError: 'int' object has no attribute 'replace'

Reported by: louise@… Owned by: bobbysmith007
Priority: normal Component: TimingAndEstimationPlugin
Severity: blocker Keywords: AttributeError
Cc: Trac Release: 0.11

Description

TRAC version: 0.11.1 (stable)

Following error message on Python console when i want to modify "Add Hours to Ticket" field on tickets created before TimingAndEstimationPlugin installed:

"AttributeError: 'int' object has no attribute 'replace'"

I made a quick fix in file ticket_daemon.py, line: 75 like this:

        #convertfloat = lambda x: float(x.replace(',','.'))                                                                   
        convertfloat = lambda x: float(str(x).replace(',','.')) 

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by bobbysmith007

  • Resolution set to fixed
  • Status changed from new to closed

(In [4170]) closes #3588 re #3579 thanks for catching that, this patch fixes a bug where i would occasionaly try to replace on a value I wasnt sure was a string

comment:2 Changed 6 years ago by bobbysmith007

(In [4171]) closes #3588 re #3579 thanks for catching that, this patch fixes a bug where i would occasionaly try to replace on a value I wasnt sure was a string

comment:3 Changed 6 years ago by bobbysmith007

sorry... please update to the most recent svn revision and it should work now (your patch has been committed)

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.