parameters: (self, app_path)
return_statement: return app
docstring: import an app class
docstring_summary: import an app class
docstring_tokens: import an app class
function: def _import_app(self, app_path):
          """import an app class"""
          app = None
          name = app_path.rsplit('.', 1)[-1]
          try:
              app = import_item(app_path)
          except ImportError:
              self.log.info("Couldn't import %s, config file will be excluded", name)
          except Exception:
              self.log.warning('Unexpected error importing %s', name, exc_info=True)
          return app
function_tokens: def _import_app ( self , app_path ) : app = None name = app_path . rsplit ( '.' , 1 ) [ - 1 ] try : app = import_item ( app_path ) except ImportError : self . log . info ( "Couldn't import %s, config file will be excluded" , name ) except Exception : self . log . warning ( 'Unexpected error importing %s' , name , exc_info = True ) return app