#NEWLINE# def try_make_dirs( filename ) : #NEWLINE# #INDENT# ' Tries to make directories for a given `filename`.\n\n    Ignores any error but notifies via stderr.\n\n    ' #NEWLINE# try : #NEWLINE# #INDENT# dirname = os . path . dirname ( os . path . normpath ( filename ) ) #NEWLINE# racedirs ( dirname ) #NEWLINE# #UNINDENT# except Exception as exc : #NEWLINE# #INDENT# sys . stderr . write ( ( 'ERROR during log config file handling, could not create dirs for filename `%s` because of: %s' % ( filename , repr ( exc ) ) ) )