mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2024-12-29 13:03:37 +01:00
fxconv: explicit error when no metadata is set for a file
This commit is contained in:
parent
41c7ac0aec
commit
90d5e723e0
1 changed files with 3 additions and 0 deletions
|
@ -114,6 +114,9 @@ def main():
|
||||||
metadata = fxconv.Metadata(path=metadata_file)
|
metadata = fxconv.Metadata(path=metadata_file)
|
||||||
params = metadata.rules_for(input)
|
params = metadata.rules_for(input)
|
||||||
|
|
||||||
|
if params is None:
|
||||||
|
return err(f"no metadata specified for {input}")
|
||||||
|
|
||||||
if "section" in params:
|
if "section" in params:
|
||||||
target["section"] = params["section"]
|
target["section"] = params["section"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue