summaryrefslogtreecommitdiffstatshomepage
path: root/tests/api/test_sort.py
diff options
context:
space:
mode:
authorWolfgang Müller2025-03-26 17:29:22 +0100
committerWolfgang Müller2025-03-26 17:29:22 +0100
commitdd1ef483ef90f35218f5a4a3ea37a624b38ca8da (patch)
treecad45146f8a34b7afbff2ecfe4f0bf17e9c7fe04 /tests/api/test_sort.py
parent89da8855282e03e4b8e25146fa041aabf49c82cb (diff)
downloadhircine-dd1ef483ef90f35218f5a4a3ea37a624b38ca8da.tar.gz
backend: Handle corrupt zip files
Corrupt zip files would already make hircine throw an error, but depending on the exact problem it would not report which file (or even which entry in a zip file) is affected. Use ZipFile.testzip() to catch common problems and make sure to re-raise any exception within as a BadZipFile exception. This makes sure to also report decompression problems that are raised as a zlib.error exception, for example.
Diffstat (limited to 'tests/api/test_sort.py')
0 files changed, 0 insertions, 0 deletions