move download_failed
This commit is contained in:
parent
c6db4b187a
commit
2ebb9da108
1 changed files with 1 additions and 1 deletions
|
@ -680,13 +680,13 @@ class Daemon(AuthJSONRPCServer):
|
|||
|
||||
result = yield self._get_lbry_file_dict(lbry_file, full_status=True)
|
||||
except Exception as err:
|
||||
yield _download_failed(err, download_id, name, claim_dict)
|
||||
if isinstance(err, (DownloadDataTimeout, DownloadSDTimeout)):
|
||||
log.warning('Failed to get %s (%s)', name, err)
|
||||
else:
|
||||
log.error('Failed to get %s (%s)', name, err)
|
||||
if self.streams[claim_id].downloader:
|
||||
yield self.streams[claim_id].downloader.stop(err)
|
||||
yield _download_failed(err, download_id, name, claim_dict)
|
||||
result = {'error': err.message}
|
||||
finally:
|
||||
del self.streams[claim_id]
|
||||
|
|
Loading…
Reference in a new issue