Skip to content

Errors

The exceptions xlspy raises.

API reference · Guide

XlspyError

Bases: Exception

Base class for the errors xlspy raises deliberately.

InvalidFileError

Bases: XlspyError, ValueError, BadZipFile

The file is not a readable XLSX, XLSM or XLSB package.

Raised when the file is not a ZIP archive, or when a part holds data the readers cannot decode (malformed XML, bad text encoding, truncated or inconsistent records). The message names the file and what failed; the decoder's own error is chained as __cause__.

UnsupportedFeatureError

Bases: XlspyError, NotImplementedError

The workbook or the call uses a feature xlspy does not support yet.