This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mgorny
Recipients mgorny
Date 2020-09-05.10:26:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1599301574.54.0.309033165254.issue41725@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2020-09-05 10:26:14mgornysetrecipients: + mgorny
2020-09-05 10:26:14mgornysetmessageid: <1599301574.54.0.309033165254.issue41725@roundup.psfhosted.org>
2020-09-05 10:26:14mgornylinkissue41725 messages
2020-09-05 10:26:14mgornycreate