Skip to content

Commit 261a183

Browse files
Merge pull request #88 from tekktrik/main
Fix pylint errors
2 parents 2108ae1 + 7522ce1 commit 261a183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_dht.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(
7979
self._temperature = None
8080
self._use_pulseio = use_pulseio
8181
if "Linux" not in uname() and not self._use_pulseio:
82-
raise Exception("Bitbanging is not supported when using CircuitPython.")
82+
raise ValueError("Bitbanging is not supported when using CircuitPython.")
8383
# We don't use a context because linux-based systems are sluggish
8484
# and we're better off having a running process
8585
if self._use_pulseio:

0 commit comments

Comments
 (0)