From f6da00cbaba33c4ad05862f9aee8d5fca95ec5a2 Mon Sep 17 00:00:00 2001 From: Kay Kurokawa Date: Wed, 27 Sep 2017 16:53:31 -0400 Subject: [PATCH] no need to catch IOError exception here, let it propagage --- lbrynet/blob/blob_file.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lbrynet/blob/blob_file.py b/lbrynet/blob/blob_file.py index a1095d528..c73f14ca1 100644 --- a/lbrynet/blob/blob_file.py +++ b/lbrynet/blob/blob_file.py @@ -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):