We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2a3285 + 644d505 commit 1409a7cCopy full SHA for 1409a7c
adafruit_mcp9600.py
@@ -224,7 +224,7 @@ def __init__(
224
self.type = tctype
225
# is this a valid thermocouple type?
226
if tctype not in MCP9600.types:
227
- raise Exception("invalid thermocouple type ({})".format(tctype))
+ raise ValueError("invalid thermocouple type ({})".format(tctype))
228
# filter is from 0 (none) to 7 (max), can limit spikes in
229
# temperature readings
230
tcfilter = min(7, max(0, tcfilter))
0 commit comments