From 8b2eabc4ac41a457cce51bb72ab04da4fd02a3be Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 17 Nov 2009 22:18:46 +0000 Subject: If match is not None. Muck around with Configurator constructor. --- repoze/bfg/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'repoze/bfg/router.py') diff --git a/repoze/bfg/router.py b/repoze/bfg/router.py index 6b1502d22..e815d7ab6 100644 --- a/repoze/bfg/router.py +++ b/repoze/bfg/router.py @@ -79,7 +79,7 @@ class Router(object): if self.routes_mapper is not None: info = self.routes_mapper(request) match, route = info['match'], info['route'] - if match: + if match is not None: environ['wsgiorg.routing_args'] = ((), match) environ['bfg.routes.route'] = route environ['bfg.routes.matchdict'] = match -- cgit v1.2.3