diff --git a/parsers/creation/contentindexparser.py b/parsers/creation/contentindexparser.py index 11f2cc6..6a0d7e9 100644 --- a/parsers/creation/contentindexparser.py +++ b/parsers/creation/contentindexparser.py @@ -142,8 +142,8 @@ def map_template_arguments_to_context(self, arg_defs, args, context): for arg_def, arg in zip(arg_defs, args + args_padding): if arg_def.name in context: raise ValueError(f'Template argument "{arg_def.name}" doubly defined in context') - arg_value = arg or arg_def.default_value - if not arg_value: + arg_value = arg if arg != '' else arg_def.default_value + if arg_value == '': raise ValueError(f'Required template argument "{arg_def.name}" not provided') if arg_def.type == 'sheet': context[arg_def.name] = self.data_sheets[arg_value]