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