Use "invalid" name for timings of requests without a handler.

This commit is contained in:
Max Goodman
2013-04-10 21:15:17 -07:00
parent 62bfccf441
commit 2916817499

View File

@@ -664,6 +664,8 @@ class MinimalController(BaseController):
def pre(self):
action = request.environ["pylons.routes_dict"].get("action")
if action:
if not self._get_action_handler():
action = 'invalid'
c.request_timer = g.stats.get_timer(request_timer_name(action))
else:
c.request_timer = SimpleSillyStub()