#NEWLINE# def _run( self ) : #NEWLINE# #INDENT# if ( not self . _running ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# next_call = None #NEWLINE# try : #NEWLINE# #INDENT# next_call = self . callback ( ) #NEWLINE# #UNINDENT# except ( KeyboardInterrupt , SystemExit ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# logging . error ( 'Error in periodic callback' , exc_info = True ) #NEWLINE# #UNINDENT# if self . _running : #NEWLINE# #INDENT# self . start ( next_call )