fix pylint errors
This commit is contained in:
parent
3b65f5962c
commit
74a872d763
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue