pickle.UnpicklingError

exception pickle.UnpicklingError[source]

This exception is raised when there is a problem unpickling an object, such as a security violation.

Note that other exceptions may also be raised during unpickling, including (but not necessarily limited to) AttributeError, EOFError, ImportError, and IndexError.