We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a872f68 commit 0df65d8Copy full SHA for 0df65d8
waveform_editor/waveform.py
@@ -126,6 +126,15 @@ def _handle_tendency(self, entry):
126
Returns:
127
The created tendency or None, if the tendency cannot be created
128
"""
129
+ if "type" not in entry:
130
+ line_number = entry.pop("line_number")
131
+ error_msg = (
132
+ "The tendency must have a 'type'.\n"
133
+ "For example: '- {type: constant, duration: 3, value: 3}'\n"
134
+ "This tendency will be ignored."
135
+ )
136
+ self.annotations.add(line_number, error_msg)
137
+ return None
138
tendency_type = entry.pop("type")
139
140
# Rewrite keys
0 commit comments