[Trac-tickets] [The Trac Project] #3119: misleading exception thrown

The Trac Project noreply at edgewall.com
Fri May 5 06:56:14 CDT 2006


#3119: misleading exception thrown
---------------------------------------------------+------------------------
 Reporter:  Markus Bertheau <mbertheau at gmail.com>  |       Owner:  jonas
     Type:  defect                                 |      Status:  new  
 Priority:  normal                                 |   Milestone:       
Component:  ticket system                          |     Version:  0.9.5
 Severity:  minor                                  |    Keywords:       
---------------------------------------------------+------------------------
 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.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/3119>
The Trac Project <http://trac.edgewall.com/>


More information about the Trac-Tickets mailing list