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.
1 parent 3cfca1d commit 9409b8aCopy full SHA for 9409b8a
tmidi.py
@@ -216,7 +216,7 @@ def __repr__(self):
216
# pylint: disable=consider-using-f-string
217
def __str__(self):
218
mtype = self.type
219
- type_str = "Message(" + _MSG_TYPE_NAMES[mtype]
+ type_str = "Message(" + _MSG_TYPE_NAMES.get(mtype, "Unknown")
220
ch_str = "ch:%d" % self.channel if _is_channel_message(mtype) else "-"
221
if mtype == PITCH_BEND:
222
return "%s %s %d)" % (type_str, ch_str, self.pitch_bend)
0 commit comments