Library is using assert statements. It is preferable to add a customary message to inform the problem outdated: ~~.instead use Exceptions.~~ https://github.com/adafruit/Adafruit_CircuitPython_FXOS8700/blob/fecfb03030dc8845e1d191a0f62db6f149bcb1ed/adafruit_fxos8700.py#L98