Commits

Robert Brewer  committed 1e9920d

Fix for checker breakage when using grafted WSGI apps.

  • Participants
  • Parent commits 23ccf44
  • Branches cherrypy-3.0.x

Comments (0)

Files changed (1)

File cherrypy/_cpchecker.py

     
     def check_skipped_app_config(self):
         for sn, app in cherrypy.tree.apps.iteritems():
+            if not isinstance(app, cherrypy.Application):
+                continue
             if not app.config:
                 msg = "The Application mounted at %r has an empty config." % sn
                 if self.global_config_contained_paths:
         # Use the dummy Request object in the main thread.
         request = cherrypy.request
         for sn, app in cherrypy.tree.apps.iteritems():
+            if not isinstance(app, cherrypy.Application):
+                continue
             request.app = app
             for section in app.config:
                 # get_resource will populate request.config
         """Process config and warn on each obsolete or deprecated entry."""
         self._compat(cherrypy.config)
         for sn, app in cherrypy.tree.apps.iteritems():
+            if not isinstance(app, cherrypy.Application):
+                continue
             self._compat(app.config)
     
     
     def check_config_namespaces(self):
         """Process config and warn on each unknown config namespace."""
         for sn, app in cherrypy.tree.apps.iteritems():
+            if not isinstance(app, cherrypy.Application):
+                continue
             self._known_ns(app.config)
     
     
         """Assert that config values are of the same type as default values."""
         self._known_types(cherrypy.config)
         for sn, app in cherrypy.tree.apps.iteritems():
+            if not isinstance(app, cherrypy.Application):
+                continue
             self._known_types(app.config)