Modify

Opened 16 years ago

Closed 16 years ago

Last modified 7 years ago

#3588 closed defect (fixed)

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

Reported by: louise@… Owned by: Russ Tyndall
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 16 years ago by Russ Tyndall

Resolution: fixed
Status: newclosed

(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 16 years ago by Russ Tyndall

(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 16 years ago by Russ Tyndall

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Russ Tyndall.
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.