Modify

Opened 15 years ago

Closed 13 years ago

#5960 closed defect (fixed)

traccmd.py 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

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 14 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; anonymous removed

comment:2 Changed 13 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
Action
as closed The owner will remain Nic Ferrier.
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.