no need to catch IOError exception here, let it propagage

This commit is contained in:
Kay Kurokawa 2017-09-27 16:53:31 -04:00
parent 3b5690614c
commit f6da00cbab

View file

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