From d0b64ef2557afa5a92907cac4dbb955880c59add Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Sun, 19 Feb 2017 19:26:48 -0500 Subject: [PATCH] don't return blob timeout error from get_availability --- lbrynet/lbrynet_daemon/Daemon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lbrynet/lbrynet_daemon/Daemon.py b/lbrynet/lbrynet_daemon/Daemon.py index df88aaa29..1ff3009b3 100644 --- a/lbrynet/lbrynet_daemon/Daemon.py +++ b/lbrynet/lbrynet_daemon/Daemon.py @@ -2508,7 +2508,11 @@ class Daemon(AuthJSONRPCServer): blob_hashes = [blob.blob_hash for blob in blobs] if need_sd_blob: # we don't want to use self._download_descriptor here because it would create a stream - sd_blob = yield self._download_blob(sd_hash, timeout=sd_timeout) + try: + sd_blob = yield self._download_blob(sd_hash, timeout=sd_timeout) + except Exception as err: + response = yield self._render_response(0.0) + defer.returnValue(response) decoded = read_sd_blob(sd_blob) blob_hashes = [blob.get("blob_hash") for blob in decoded['blobs'] if blob.get("blob_hash")]