Message376427
Currently, the bz2 extension functions raise a generic OSError() on BZ_DATA_ERROR and BZ_DATA_ERROR_MAGIC. When working on files, this makes it unnecessarily hard to catch compressor errors (i.e. invalid bz2 input file) without catching system I/O errors. Could you please consider adding a new exception type for bz2 errors, akin to gzip.BadGzipFile? |
|
Date |
User |
Action |
Args |
2020-09-05 10:26:14 | mgorny | set | recipients:
+ mgorny |
2020-09-05 10:26:14 | mgorny | set | messageid: <1599301574.54.0.309033165254.issue41725@roundup.psfhosted.org> |
2020-09-05 10:26:14 | mgorny | link | issue41725 messages |
2020-09-05 10:26:14 | mgorny | create | |
|