fix pylint errors

This commit is contained in:
Jack Robison 2017-01-25 13:10:38 -05:00
parent 3b65f5962c
commit 74a872d763
2 changed files with 4 additions and 2 deletions

View file

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

View file

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