Open alexlenail opened 7 years ago
I'm running into the same problem. I believe it's caused by these lines from try_open_gzip()
in celparser.pyx:
try:
fh = gzip.open(path)
fh.read(1)
except IOError:
pass
It's checking for IOError
. But the gzip reader throws an OSError
instead, which it doesn't catch.
Here is a working version of try_open_gzip()
:
def try_open_gzip(path):
fh = None
try:
fh = gzip.open(path)
fh.read(1)
except (IOError, OSError):
fh = None
else:
fh = gzip.open(path)
return fh
There are two changes. It catches OSError
, and the error handler needs to set fh
to None
.