#NEWLINE# def get_artist( self , name ) : #NEWLINE# #INDENT# artist = self . artists . get ( name ) #NEWLINE# if ( not artist ) : #NEWLINE# #INDENT# if self . use_db : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# artist = q ( m . Artist ) . filter_by ( name = name ) . one ( ) #NEWLINE# #UNINDENT# except NoResultFound : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# if ( artist and artist . ram_cache ) : #NEWLINE# #INDENT# self . add_artist ( artist ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return artist