change some ValueErrors to IOErrors

This commit is contained in:
Jack Robison 2017-09-15 13:46:38 -04:00
parent 421141b958
commit 8419e1e1d5
No known key found for this signature in database
GPG key ID: 284699E7404E3CFF
3 changed files with 5 additions and 6 deletions
lbrynet/blob

View file

@ -161,7 +161,7 @@ class BlobFile(object):
d = file_sender.beginFileTransfer(file_handle, reader)
d.addCallback(close_self)
else:
d = defer.fail(ValueError("Could not read the blob"))
d = defer.fail(IOError("Could not read the blob"))
return d
def writer_finished(self, writer, err=None):