Commits

Andriy Kornatskyy committed b3fb877

Fixed issue for default route in case it is a root path (empty string).

Comments (0)

Files changed (1)

src/wheezy/web/middleware/errors.py

     if 'http_errors' in options:
         error_mapping = options['http_errors']
         assert isinstance(error_mapping, defaultdict)
-        assert path_for(error_mapping.default_factory())
+        assert path_for(error_mapping.default_factory()) is not None
         for route_name in error_mapping.values():
             assert path_for(route_name) is not None
     else: