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: