Modify ↓
Opened 20 years ago
Closed 20 years ago
#3119 closed defect (duplicate)
misleading exception thrown
| Reported by: | 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)
Note:
See TracTickets
for help on using tickets.



Duplicate of #3118