Edgewall Software

Changes between Version 1 and Version 3 of Ticket #12076


Ignore:
Timestamp:
May 17, 2015, 12:07:17 AM (5 years ago)
Author:
Ryan J Ollos
Comment:

Replying to jomae:

I think we should catch both TypeError and ValueError.

Thanks. Proposed changes in log:rjollos.git:t12076-resource-exists-trap-exception.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #12076 – Release Notes

    v1 v3  
     1Tracebacks in log are avoided with PostgreSQL when navigating to the URL `/ticket/<id>` when `<id>` is not an integer.
  • Ticket #12076 – API Changes

    v1 v3  
     1Exceptions are trapped and `False` returned from `trac.ticket.api.TicketSystem.resource_exists` when the resource id can't be converted to an integer.