Opened 17 years ago

Last modified 17 years ago

#390 closed defect

ticket.update returns a failure to get the ticket — at Version 1

Reported by: moof@… Owned by: Alec Thomas
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.9

Description (last modified by Noah Kantrowitz)

> server.ticket.update(41, u'Actualizacion automatica', attrs)
Traceback (most recent call last):
  File "<input>", line 1, in ?
  File "C:\Python24\lib\xmlrpclib.py", line 1096, in __call__
    return self.__send(self.__name, args)
  File "C:\Python24\lib\xmlrpclib.py", line 1383, in __request
    verbose=self.__verbose
  File "C:\Python24\lib\xmlrpclib.py", line 1147, in request
    return self._parse_response(h.getfile(), sock)
  File "C:\Python24\lib\xmlrpclib.py", line 1286, in _parse_response
    return u.close()
  File "C:\Python24\lib\xmlrpclib.py", line 744, in close
    raise Fault(**self._stack[0])
Fault: <Fault 2: "''TicketRPC' object has no attribute 'getTicket'' while executing 'ticket.update()'">

The code is wrong and referring a method that does not exist. Attached is a patch to correct the line.

Change History (2)

Changed 17 years ago by moof@…

Attachment: ticket.py.patch added

Patch to resolve the problem

comment:1 Changed 17 years ago by Noah Kantrowitz

Description: modified (diff)

Fix traceback so it looks less dumb

Note: See TracTickets for help on using tickets.