mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-02-04 03:35:09 -05:00
Use "invalid" name for timings of requests without a handler.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user