Skip to content

Commit 27ee05b

Browse files
evaherradakattni
andauthored
Update adafruit_midi/midi_message.py to match suggestion
Co-authored-by: Kattni <[email protected]>
1 parent 8212df5 commit 27ee05b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_midi/midi_message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def channel(self):
111111
@channel.setter
112112
def channel(self, channel):
113113
if channel is not None and not 0 <= channel <= 15:
114-
raise "Channel must be 0-15 or None" # pylint: disable=raising-bad-type
114+
raise ValueError("Channel must be 0-15 or None")
115115
self._channel = channel
116116

117117
@classmethod

0 commit comments

Comments
 (0)