#NEWLINE# def get_data( self , request , stack_id ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# stack = api . heat . stack_get ( request , stack_id ) #NEWLINE# if ( stack . stack_status == 'DELETE_COMPLETE' ) : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# return stack #NEWLINE# #UNINDENT# except Http404 : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# messages . error ( request , e ) #NEWLINE# raise