#NEWLINE# def get_container( self , cont ) : #NEWLINE# #INDENT# '\n        List files in a Swift container\n        ' #NEWLINE# try : #NEWLINE# #INDENT# listing = self . conn . get_container ( cont ) #NEWLINE# return listing #NEWLINE# #UNINDENT# except Exception as exc : #NEWLINE# #INDENT# log . error ( 'There was an error::' ) #NEWLINE# if ( hasattr ( exc , 'code' ) and hasattr ( exc , 'msg' ) ) : #NEWLINE# #INDENT# log . error ( '    Code: {0}: {1}' . format ( self . code , exc . msg ) ) #NEWLINE# #UNINDENT# log . error ( '    Content: \n{0}' . format ( getattr ( exc , 'read' , ( lambda : str ( exc ) ) ) ( ) ) ) #NEWLINE# return False