#NEWLINE# def handle( self ) : #NEWLINE# #INDENT# while True : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# line = self . rfile . readline ( ) #NEWLINE# if ( not line ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# metrics = self . server . collector . _parse_metrics ( line ) #NEWLINE# self . server . collector . _add_metrics ( metrics ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# self . server . collector . logger . exception ( 'Exception during processing TCP connection' ) #NEWLINE# break