Modify ↓
      
        #3588 closed defect (fixed)
AttributeError: 'int' object has no attribute 'replace'
| Reported by: | 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 17 years ago by
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
comment:2 Changed 17 years ago by
comment:3 Changed 17 years ago by
sorry... please update to the most recent svn revision and it should work now (your patch has been committed)
Note: See
        TracTickets for help on using
        tickets.
    



(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