change some ValueErrors to IOErrors
This commit is contained in:
parent
421141b958
commit
8419e1e1d5
3 changed files with 5 additions and 6 deletions
lbrynet/blob
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue