diff --git a/adafruit_as7341.py b/adafruit_as7341.py index 9b61306..65e9535 100644 --- a/adafruit_as7341.py +++ b/adafruit_as7341.py @@ -510,7 +510,7 @@ def _configure_f5_f8(self) -> None: def flicker_detected(self) -> Optional[int]: """The flicker frequency detected in Hertz""" if not self._flicker_detection_1k_configured: - AttributeError( + raise AttributeError( "Flicker detection must be enabled to access `flicker_detected`" ) flicker_status = self._fd_status