From bb2fb92b0eb8cc31baa2fde20042e3c9690c1ddb Mon Sep 17 00:00:00 2001 From: Jack Date: Fri, 6 May 2016 16:59:23 -0400 Subject: [PATCH] have uri handler fail silently to prevent misleading error otherwise first run produced an error while it was downloading the headers if the app was started by going to lbry://lbry --- lbrynet/lbrynet_daemon/Apps/LBRYURIHandler.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lbrynet/lbrynet_daemon/Apps/LBRYURIHandler.py b/lbrynet/lbrynet_daemon/Apps/LBRYURIHandler.py index ed63c6f03..9bdc20ec8 100644 --- a/lbrynet/lbrynet_daemon/Apps/LBRYURIHandler.py +++ b/lbrynet/lbrynet_daemon/Apps/LBRYURIHandler.py @@ -36,14 +36,16 @@ class LBRYURIHandler(object): elif status: return True else: - raise Timeout("LBRY daemon is running, but connection timed out") + sys.exit(0) + # raise Timeout("LBRY daemon is running, but connection timed out") except: if self.start_timeout < 30: sleep(1) self.start_timeout += 1 self.check_status() else: - raise Timeout("Timed out trying to start LBRY daemon") + sys.exit(0) + # raise Timeout("Timed out trying to start LBRY daemon") def handle_osx(self, lbry_name): lbry_process = [d for d in subprocess.Popen(['ps','aux'], stdout=subprocess.PIPE).stdout.readlines() @@ -72,6 +74,7 @@ class LBRYURIHandler(object): if not is_running: sys.exit(0) except: + #start lbrynet-daemon sys.exit(0) if lbry_name == "lbry":