#NEWLINE# def _loadmodule( self , modulename ) : #NEWLINE# #INDENT# if ( self . modules [ modulename ] [ 'module' ] or self . modules [ modulename ] [ 'error' ] ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# self . modules [ modulename ] [ 'module' ] = importlib . import_module ( self . modules [ modulename ] [ 'name' ] ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# _log . info ( ( "Module '%s' not available: %s" % ( modulename , e ) ) ) #NEWLINE# self . modules [ modulename ] [ 'error' ] = self