Modify

Opened 5 years ago

Closed 4 years ago

#5960 closed defect (fixed)

traccmd.py ticketupdate error -- type mismatch

Reported by: cata@… Owned by: nicferrier
Priority: normal Component: TracCmdScript
Severity: normal Keywords:
Cc: rjollos 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 5 years ago by rjollos

  • Cc rjollos added

comment:2 Changed 4 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

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from nicferrier. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.