Terry J. Reedy <tjre...@udel.edu> added the comment:

An OSError for a file the OS can read seems a bit off.  What is the 
accompanying message?  Would something like ValueError("bz2 compressor failed 
with BZ_DATA_ERROR") be better? 

Michał, are there precedents or models for this in the other file compression 
modules?

----------
nosy: +serhiy.storchaka, terry.reedy
versions: +Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41725>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to