Modify ↓
Opened 15 years ago
Closed 14 years ago
#5960 closed defect (fixed)
traccmd.py ticketupdate error -- type mismatch
Reported by: | Owned by: | Nic Ferrier | |
---|---|---|---|
Priority: | normal | Component: | TracCmdScript |
Severity: | normal | Keywords: | |
Cc: | Ryan J Ollos | Trac Release: | 0.11 |
Description
When I run a command like "traccmd.py ticketupdate 2 milestone foobar", I get the error:
<Fault 2: "'%d format: a number is required, not str' while executing 'ticket.update()'">
I fixed the script by adding the typecast "ticket_number = int(ticket_number)" in the ticketupdate() function before the call to server.ticket.get().
It looks like a legitimate issue to me. If the error is somewhere in my environment, then sorry for wasting your time!
I'm using Python 2.6.2, Trac 0.11.5 and TracXMLRPC-1.0.6-py2.6.egg.
Attachments (0)
Change History (2)
comment:1 Changed 15 years ago by
Cc: | Ryan J Ollos added; anonymous removed |
---|
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
this is fixed now, thanks. sorry for the delay.