fxconv: explicit error when no metadata is set for a file

This commit is contained in:
Lephenixnoir 2022-01-28 19:07:53 +01:00
parent 41c7ac0aec
commit 90d5e723e0
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 3 additions and 0 deletions

View File

@ -114,6 +114,9 @@ def main():
metadata = fxconv.Metadata(path=metadata_file)
params = metadata.rules_for(input)
if params is None:
return err(f"no metadata specified for {input}")
if "section" in params:
target["section"] = params["section"]