Opened 9 years ago

Closed 8 years ago

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

Reported by: cata@… Owned by: Nic Ferrier
Priority: normal Component: TracCmdScript
Severity: normal Keywords:
Cc: Ryan J Ollos 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 9 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; anonymous removed

comment:2 Changed 8 years ago by Nic Ferrier

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Nic Ferrier.
The resolution will be deleted.

Add Comment

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

Note: See TracTickets for help on using tickets.