forked from LBRYCommunity/lbry-sdk
no need to catch IOError exception here, let it propagage
This commit is contained in:
parent
3b5690614c
commit
f6da00cbab
1 changed files with 3 additions and 7 deletions
|
@ -79,13 +79,9 @@ class BlobFile(object):
|
|||
finished
|
||||
"""
|
||||
if self._verified is True:
|
||||
try:
|
||||
reader = HashBlobReader(self.file_path, self.reader_finished)
|
||||
self.readers += 1
|
||||
return reader
|
||||
except IOError:
|
||||
log.exception('Failed to open %s', self.file_path)
|
||||
reader.close()
|
||||
reader = HashBlobReader(self.file_path, self.reader_finished)
|
||||
self.readers += 1
|
||||
return reader
|
||||
return None
|
||||
|
||||
def delete(self):
|
||||
|
|
Loading…
Reference in a new issue