Commits

Olemis Lang  committed 114c0de

Mapping `ResourceNotFound`exception to `invalid_request` GViz response

  • Participants
  • Parent commits 62853e9
  • Branches providers

Comments (0)

Files changed (1)

File trac-dev/gviz/tracgviz/proto.py

 __author__ = 'Olemis Lang'
 
 from trac.perm import PermissionError
+from trac.resource import ResourceNotFound
 from trac.ticket.query import QuerySyntaxError
 
 from api import IGVizProtocolHandler
                             ['invalid_request', 'Bad request'],
                     GVizInvalidConfigError : \
                             ['internal_error', 'Invalid configuration'],
+                    ResourceNotFound : \
+                            ['invalid_request', 'Resource not found'],
                    }
     
     def _error(self, req, error, reqId, version, responseHandler):