On this page
lzma.LZMAError
Prev: lzma.LZMADecompressor | Up: lzma | Next: lzma.LZMAFile
Rel: lzma.compress, lzma.decompress, lzma.is_check_supported, lzma.LZMACompressor
Ref: docs.python.org โ lzma.LZMAError
Tags: #public #python3 #stdlib #lzma
Import
import lzma
from lzma import LZMAError
Signature & Overview
lzma.LZMAError(...)
Call to liblzma failed.
Methods & Attributes
LZMAError.add_note(self, note, /)โ Add a note to the exceptionLZMAError.with_traceback(self, tb, /)โ Set self.traceback to tb and return self.
Usage
import lzma
try:
lzma.decompress(b"corrupt")
except lzma.LZMAError:
assert True
Gotchas
- Raised on corrupt
.xz/.lzmastreams or exceededmemlimit.
REPL Inspect
from lzma import LZMAError
help(LZMAError)
Linked from
Related notes
- tuts/python3/stdlib_module/lzma/LZMADecompressor Linked here; links to this page; shared tags: #lzma, #stdlib
- tuts/python3/stdlib_module/lzma/LZMAFile Linked here; links to this page; shared tags: #lzma, #stdlib
- tuts/python3/stdlib_module/lzma Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/lzma/compress Linked here; shared tags: #lzma, #stdlib
- tuts/python3/stdlib_module/lzma/decompress Linked here; shared tags: #lzma, #stdlib
- tuts/python3/stdlib_module/lzma/is_check_supported Linked here; shared tags: #lzma, #stdlib
- tuts/python3/stdlib_module/lzma/LZMACompressor Linked here; shared tags: #lzma, #stdlib
- tuts/python3/stdlib_module/lzma/open shared tags: #lzma, #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib