Bug fix: continue even if log fails to upload
lbry.io being down caused lbrynet to die when uploading a log.
This commit is contained in:
parent
e1cdbdc91d
commit
b300afb504
1 changed files with 4 additions and 1 deletions
|
@ -622,7 +622,10 @@ class Daemon(AuthJSONRPCServer):
|
||||||
id_hash = base58.b58encode(self.lbryid)[:20]
|
id_hash = base58.b58encode(self.lbryid)[:20]
|
||||||
else:
|
else:
|
||||||
id_hash = self.lbryid
|
id_hash = self.lbryid
|
||||||
self.log_uploader.upload(exclude_previous, self.lbryid, log_type)
|
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)
|
return defer.succeed(None)
|
||||||
|
|
||||||
def _clean_up_temp_files(self):
|
def _clean_up_temp_files(self):
|
||||||
|
|
Loading…
Reference in a new issue