From 7522ce1047bd267425b9223f3f3aaa80d005a257 Mon Sep 17 00:00:00 2001 From: Tekktrik Date: Thu, 11 May 2023 00:58:04 -0400 Subject: [PATCH] Linted per pre-commit --- adafruit_dht.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adafruit_dht.py b/adafruit_dht.py index f173cd8..2d838bd 100644 --- a/adafruit_dht.py +++ b/adafruit_dht.py @@ -79,7 +79,7 @@ def __init__( self._temperature = None self._use_pulseio = use_pulseio if "Linux" not in uname() and not self._use_pulseio: - raise Exception("Bitbanging is not supported when using CircuitPython.") + raise ValueError("Bitbanging is not supported when using CircuitPython.") # We don't use a context because linux-based systems are sluggish # and we're better off having a running process if self._use_pulseio: