wsgi/handler.py
changeset 2058 7ef12c03447c
parent 1977 606923dff11b
child 2770 356e9d7c356d
child 4212 ab6573088b4a
--- a/wsgi/handler.py	Fri Jun 05 15:06:55 2009 +0200
+++ b/wsgi/handler.py	Fri Jun 05 15:09:20 2009 +0200
@@ -97,10 +97,7 @@
 #         assert self.base_url[-1] == '/'
 #         self.https_url = config['https-url']
 #         assert not self.https_url or self.https_url[-1] == '/'
-        try:
-            self.url_rewriter = self.appli.vreg.select_component('urlrewriter')
-        except ObjectNotFound:
-            self.url_rewriter = None
+        self.url_rewriter = self.appli.vreg.select_object('components', 'urlrewriter')
 
     def _render(self, req):
         """this function performs the actual rendering