|
@@ -529,7 +529,7 @@ class LoggedIO:
|
|
|
with open(filename, 'rb') as fd:
|
|
|
try:
|
|
|
fd.seek(-self.header_fmt.size, os.SEEK_END)
|
|
|
- except OSError as e:
|
|
|
+ except (IOError, OSError) as e:
|
|
|
# return False if segment file is empty or too small
|
|
|
if e.errno == errno.EINVAL:
|
|
|
return False
|