summaryrefslogtreecommitdiffstats
path: root/Lib/chunk.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/chunk.py')
-rw-r--r--Lib/chunk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/chunk.py b/Lib/chunk.py
index 8116256..1dc4a77 100644
--- a/Lib/chunk.py
+++ b/Lib/chunk.py
@@ -70,7 +70,7 @@ class Chunk:
self.size_read = 0
try:
self.offset = self.file.tell()
- except:
+ except (AttributeError, IOError):
self.seekable = 0
else:
self.seekable = 1
@@ -158,7 +158,7 @@ class Chunk:
self.file.seek(n, 1)
self.size_read = self.size_read + n
return
- except:
+ except IOError:
pass
while self.size_read < self.chunksize:
n = min(8192, self.chunksize - self.size_read)