fxconv: explicit error when no metadata is set for a file
This commit is contained in:
parent
41c7ac0aec
commit
90d5e723e0
|
@ -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…
Reference in New Issue