Modify

Opened 6 years ago

Closed 4 years ago

Last modified 4 years ago

#7607 closed defect (fixed)

Fix exception in TicketLinks.__repr__

Reported by: Eygene Ryabinkin Owned by: Noah Kantrowitz
Priority: normal Component: MasterTicketsPlugin
Severity: major Keywords:
Cc: Trac Release: 0.12

Description (last modified by Ryan J Ollos)

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 Eygene Ryabinkin 6 years ago.
Stringifies tickets IDs when pushing them to the list to be join()'ed.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by Eygene Ryabinkin

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

comment:1 Changed 4 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

comment:2 Changed 4 years ago by Ryan J Ollos

Description: modified (diff)

Modify Ticket

Action
as closed The owner will remain Noah Kantrowitz.
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.