Modify

Opened 4 years ago

Closed 19 months ago

Last modified 19 months ago

#7607 closed defect (fixed)

Fix exception in TicketLinks.__repr__

Reported by: rea Owned by: coderanger
Priority: normal Component: MasterTicketsPlugin
Severity: major Keywords:
Cc: Trac Release: 0.12

Description (last modified by rjollos)

str.join() wants a list of strings to join, but it is fed with the list of integers. So, when exception in the plugin is caught by Trac and it wants to represent the TicketLinks object as a string, the second exception strikes and Trac dumps ugly textual backtrace.

The patch is attached.

Attachments (1)

extra-patch-0.12-stringify-ids (473 bytes) - added by rea 4 years ago.
Stringifies tickets IDs when pushing them to the list to be join()'ed.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by rea

Stringifies tickets IDs when pushing them to the list to be join()'ed.

comment:1 Changed 19 months ago by rjollos

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

comment:2 Changed 19 months ago by rjollos

  • Description modified (diff)

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 coderanger. 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.