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

pull/9/head
Lephenixnoir 8 months ago
parent 41c7ac0aec
commit 90d5e723e0
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
  1. 3
      fxconv/fxconv-main.py

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

Loading…
Cancel
Save