Skip to content

Commit

Permalink
Linted per pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tekktrik committed May 11, 2023
1 parent 2108ae1 commit 7522ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_dht.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7522ce1

Please sign in to comment.