#NEWLINE# def _catch_connection_error( f ) : #NEWLINE# #INDENT# def w( * args ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# return f ( * args ) #NEWLINE# #UNINDENT# except socket . error : #NEWLINE# #INDENT# raise ValueError ( ( 'Unable to connect to an lbrycrd server. Make sure an lbrycrd server ' + 'is running and that this application can connect to it.' ) ) #NEWLINE# #UNINDENT# #UNINDENT# return f