Skip to content

Commit

Permalink
Merge pull request #23 from tekktrik/main
Browse files Browse the repository at this point in the history
Fixed pylint issues
  • Loading branch information
jposada202020 authored May 11, 2023
2 parents f2a3285 + 644d505 commit 1409a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_mcp9600.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def __init__(
self.type = tctype
# is this a valid thermocouple type?
if tctype not in MCP9600.types:
raise Exception("invalid thermocouple type ({})".format(tctype))
raise ValueError("invalid thermocouple type ({})".format(tctype))
# filter is from 0 (none) to 7 (max), can limit spikes in
# temperature readings
tcfilter = min(7, max(0, tcfilter))
Expand Down

0 comments on commit 1409a7c

Please sign in to comment.