From 90d5e723e00c97e5ac74a813a4800a834f646375 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Fri, 28 Jan 2022 19:07:53 +0100 Subject: [PATCH] fxconv: explicit error when no metadata is set for a file --- fxconv/fxconv-main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fxconv/fxconv-main.py b/fxconv/fxconv-main.py index c1d18a4..6954936 100755 --- a/fxconv/fxconv-main.py +++ b/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"]