From 2916817499053da7d1a2af5fc28143093078f083 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Wed, 10 Apr 2013 21:15:17 -0700 Subject: [PATCH] Use "invalid" name for timings of requests without a handler. --- r2/r2/controllers/reddit_base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/r2/r2/controllers/reddit_base.py b/r2/r2/controllers/reddit_base.py index 2b7f0d236..9a8b2075f 100644 --- a/r2/r2/controllers/reddit_base.py +++ b/r2/r2/controllers/reddit_base.py @@ -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()