#NEWLINE# def render( self ) : #NEWLINE# #INDENT# ( height , width ) = self . window_size ( ) #NEWLINE# self . title = '[backtrace]' #NEWLINE# res = self . client . perform_request ( 'command' , block = self . block , command = 'bt' ) #NEWLINE# if res . timed_out : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if ( res and res . is_success ) : #NEWLINE# #INDENT# self . body = res . output #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# log . error ( 'Error getting backtrace: {}' . format ( res . message ) ) #NEWLINE# self . body = self . colour ( res . message , 'red' ) #NEWLINE# #UNINDENT# super ( BacktraceView , self ) . render ( )