From 7e43dc1d744a56c4ad8f83354dd175d78ac44919 Mon Sep 17 00:00:00 2001 From: Yossef Mendelssohn Date: Tue, 26 Mar 2024 12:51:10 -0400 Subject: [PATCH] fix a syntax error --- modules/meta.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/meta.py b/modules/meta.py index 5fb8299c..8aff78b1 100644 --- a/modules/meta.py +++ b/modules/meta.py @@ -455,7 +455,8 @@ class DataFile: sort_name = f"{variables[name_var][len(op):].strip()}, {op}" if not sort_mapping and variables["mapping_name"].startswith(f"{op} "): sort_mapping = f"{variables['mapping_name'][len(op):].strip()}, {op}" - break if sort_name and sort_mapping + if sort_name and sort_mapping: + break else: raise Failed(f"{self.data_type} Error: template sub-attribute move_prefix is blank") variables[f"{self.data_type.lower()}_sort"] = sort_name if sort_name else variables[name_var]