diff --git a/moban/mobanfile/__init__.py b/moban/mobanfile/__init__.py index 8ded5347..1a1797de 100644 --- a/moban/mobanfile/__init__.py +++ b/moban/mobanfile/__init__.py @@ -137,7 +137,9 @@ def handle_targets(merged_options, targets): target.set_template_type(forced_template_type) template_type = target.template_type - primary_template_type = plugins.ENGINES.get_primary_key(template_type) + primary_template_type = plugins.ENGINES.get_primary_key( + template_type + ) if primary_template_type is None: primary_template_type = merged_options[ constants.LABEL_TEMPLATE_TYPE