#NEWLINE# def get_safe( self , section , key , default = None ) : #NEWLINE# #INDENT# '\n        Attempt to get a configuration value from a certain section\n        in a ``cfg`` object but returning None if not found. Avoids the need\n        to be doing try/except {ConfigParser Exceptions} every time.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# return self . get ( section , key ) #NEWLINE# #UNINDENT# except ( NoSectionError , NoOptionError ) : #NEWLINE# #INDENT# return default