diff --git a/lbrynet/reflector/client/client.py b/lbrynet/reflector/client/client.py index de6612751..e6c3e328e 100644 --- a/lbrynet/reflector/client/client.py +++ b/lbrynet/reflector/client/client.py @@ -238,7 +238,8 @@ class EncryptedFileReflectorClient(Protocol): d = self.blob_manager.get_blob(blob_hash, True) d.addCallback(self.open_blob_for_reading) # send the server the next blob hash + length - d.addCallbacks(lambda _: self.send_blob_info(), lambda err: self.skip_missing_blob(err, blob_hash)) + d.addCallbacks(lambda _: self.send_blob_info(), + lambda err: self.skip_missing_blob(err, blob_hash)) return d else: # close connection diff --git a/lbrynet/reflector/reupload.py b/lbrynet/reflector/reupload.py index 86bfea2cf..96a4b3d9f 100644 --- a/lbrynet/reflector/reupload.py +++ b/lbrynet/reflector/reupload.py @@ -41,7 +41,8 @@ def _reflect_if_unavailable(reflector_has_stream, lbry_file, reflector_server): def _catch_error(err, uri): - log.error("An error occurred while checking availability for lbry://%s: %s", uri, err.getTraceback()) + msg = "An error occurred while checking availability for lbry://%s: %s" + log.error(msg, uri, err.getTraceback()) def check_and_restore_availability(lbry_file, reflector_server):