Skip to content

Commit 7125764

Browse files
authored
Merge pull request #36 from tekktrik/main
Fixed pylint issues
2 parents 8cfb19b + 28dc163 commit 7125764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_as7341.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ def _configure_f5_f8(self) -> None:
510510
def flicker_detected(self) -> Optional[int]:
511511
"""The flicker frequency detected in Hertz"""
512512
if not self._flicker_detection_1k_configured:
513-
AttributeError(
513+
raise AttributeError(
514514
"Flicker detection must be enabled to access `flicker_detected`"
515515
)
516516
flicker_status = self._fd_status

0 commit comments

Comments
 (0)