Opened 7 years ago

Closed 6 years ago

#5960 closed defect (fixed) ticketupdate error -- type mismatch

Reported by: cata@… Owned by: nicferrier
Priority: normal Component: TracCmdScript
Severity: normal Keywords:
Cc: rjollos Trac Release: 0.11


When I run a command like " 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 7 years ago by rjollos

  • Cc rjollos added; anonymous removed

comment:2 Changed 6 years ago by nicferrier

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

this is fixed now, thanks. sorry for the delay.

Add Comment

Modify Ticket

as closed The owner will remain nicferrier.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.