Skip to content

Commit 1409a7c

Browse files
Merge pull request #23 from tekktrik/main
Fixed pylint issues
2 parents f2a3285 + 644d505 commit 1409a7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_mcp9600.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def __init__(
224224
self.type = tctype
225225
# is this a valid thermocouple type?
226226
if tctype not in MCP9600.types:
227-
raise Exception("invalid thermocouple type ({})".format(tctype))
227+
raise ValueError("invalid thermocouple type ({})".format(tctype))
228228
# filter is from 0 (none) to 7 (max), can limit spikes in
229229
# temperature readings
230230
tcfilter = min(7, max(0, tcfilter))

0 commit comments

Comments
 (0)