#NEWLINE# def __exit__( self , exc_type , exc_val , exc_tb ) : #NEWLINE# #INDENT# if ( not ( os . getenv ( 'CI' ) or exc_val . output_path ) ) : #NEWLINE# #INDENT# self . docker . remove_image ( image = self . image_id , force = True )