#NEWLINE# def run( self ) : #NEWLINE# #INDENT# logger . info ( 'Starting update loop.' ) #NEWLINE# try : #NEWLINE# #INDENT# while True : #NEWLINE# #INDENT# self . update ( ) #NEWLINE# time . sleep ( self . refresh_rate ) #NEWLINE# #UNINDENT# #UNINDENT# except ( KeyboardInterrupt , SystemExit ) : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# logger . exception ( 'Found exception %s, exiting.' , self ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# self . quit ( )