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:
Job Evers-Meltzer 2016-11-14 20:16:34 -06:00
parent e1cdbdc91d
commit b300afb504

View file

@ -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):