Merge pull request #270 from lbryio/survive-lbry-down

Bug fix: continue even if log fails to upload
This commit is contained in:
Job Evers‐Meltzer 2016-11-15 08:48:05 -06:00 committed by GitHub
commit 8e1ad0aa8b

View file

@ -622,7 +622,10 @@ class Daemon(AuthJSONRPCServer):
id_hash = base58.b58encode(self.lbryid)[:20]
else:
id_hash = self.lbryid
try:
self.log_uploader.upload(exclude_previous, self.lbryid, log_type)
except requests.RequestException:
log.exception('Failed to upload log file')
return defer.succeed(None)
def _clean_up_temp_files(self):