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
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

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"]