Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

#3119 closed defect (duplicate)

misleading exception thrown

Reported by: Markus Bertheau <mbertheau@…> Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version: 0.9.5
Severity: minor Keywords:
Cc: mbertheau@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

trac-post-commit-hook calls into trac with the ticket id as a string:

ticket = Ticket(self.env, tkt_id)

If the ticket doesn't exist, trac tries to format an error message somewhere with %d instead of %s. So you get int argument required instead of Ticket x does not exist.

Note that if the ticket id does exist, then it works fine with a string.

Attachments (0)

Change History (1)

comment:1 by Alec Thomas, 19 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #3118

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.