#NEWLINE# def get_preview_image( self , name , gender ) : #NEWLINE# #INDENT# "Return raw image data for species placeholder pic.\n\n        I don't think this is actually used anywhere in game. Some mods don't\n        include it." #NEWLINE# species = self . get_species ( name . lower ( ) ) #NEWLINE# try : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# key = self . get_gender_data ( species , gender ) [ 'characterImage' ] #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# return self . assets . read ( name , species [ 0 ] [ 1 ] , image = True ) #NEWLINE# #UNINDENT# except FileNotFoundError : #NEWLINE# #INDENT# logging . warning ( 'No race set on player' ) #NEWLINE# return None