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:
|
||||
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":
|
||||
|
|
Loading…
Add table
Reference in a new issue