#NEWLINE# @ rumps . timer ( 1 ) #NEWLINE# def alert_daemon_start( self ) : #NEWLINE# #INDENT# daemon = xmlrpclib . ServerProxy ( 'http://localhost:7080/' ) #NEWLINE# try : #NEWLINE# #INDENT# start_msg = daemon . is_running ( ) #NEWLINE# if isinstance ( start_msg , str ) : #NEWLINE# #INDENT# rumps . notification ( title = 'LBRY' , subtitle = '' , message = str ( start_msg ) , sound = True ) #NEWLINE# update_info = daemon . check_for_new_version ( ) #NEWLINE# update_msg = '' #NEWLINE# for p in update_info : #NEWLINE# #INDENT# if ( not p [ 0 ] ) : #NEWLINE# #INDENT# update_msg += ( p [ 1 ] + '\n' ) #NEWLINE# #UNINDENT# #UNINDENT# if update_msg : #NEWLINE# #INDENT# update_msg += '\n Try running the installer again to fix this' #NEWLINE# rumps . notification ( title = 'LBRY' , subtitle = '' , message = update_msg , sound = True ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# except : #NEWLINE# #INDENT# pass