mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-09-01 01:35:14 +00:00
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
This commit is contained in:
parent
10b016312d
commit
bb2fb92b0e
1 changed files with 5 additions and 2 deletions
|
@ -36,14 +36,16 @@ class LBRYURIHandler(object):
|
||||||
elif status:
|
elif status:
|
||||||
return True
|
return True
|
||||||
else:
|
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:
|
except:
|
||||||
if self.start_timeout < 30:
|
if self.start_timeout < 30:
|
||||||
sleep(1)
|
sleep(1)
|
||||||
self.start_timeout += 1
|
self.start_timeout += 1
|
||||||
self.check_status()
|
self.check_status()
|
||||||
else:
|
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):
|
def handle_osx(self, lbry_name):
|
||||||
lbry_process = [d for d in subprocess.Popen(['ps','aux'], stdout=subprocess.PIPE).stdout.readlines()
|
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:
|
if not is_running:
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
except:
|
except:
|
||||||
|
#start lbrynet-daemon
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
if lbry_name == "lbry":
|
if lbry_name == "lbry":
|
||||||
|
|
Loading…
Add table
Reference in a new issue