#NEWLINE# def render( self , ex_handler = mako . exceptions . html_error_template ) : #NEWLINE# #INDENT# current_time = datetime . datetime . now ( ) . strftime ( '%Y-%m-%d %H:%M:%S' ) #NEWLINE# try : #NEWLINE# #INDENT# result = self . template . render ( query_groups = self . _query_groups , all_group = self . _all_group , report_title = self . REPORT_TITLE , report_time = ex_handler , duration = self . duration , ** self . kwargs ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# return ex_handler ( ) . render ( ) #NEWLINE# #UNINDENT# return result