Skip to content

v0.14.1 — say which argument is missing

Choose a tag to compare

@DareDev256 DareDev256 released this 04 Aug 03:52

Found on the first real-footage test of 0.14.0.

Grouped calls nest parameters under args, so an action's required fields are no longer visible in the advertised schema and the caller has to guess them. Most handlers take filepath. A few do not — the beat tools take media_path — and guessing wrong returned:

Error: KeyError

No key name, nothing to correct, no way for a model to recover. That dead end did not exist with the flat schema, so it was a regression the 0.14.0 grouping introduced.

Now:

Missing required argument: media_path

'detect_beats' accepts:
  media_path (required): Path to audio/video file (.wav, .mp3, .m4a, .aac, .aif, .flac, .mov, .mp4)

Applies to flat calls as well as grouped ones.

Full Changelog: v0.14.0...v0.14.1