573 | | arg_vals.append(arg.resolve(context)) |
| 573 | try: |
| 574 | arg_val = arg.resolve(context) |
| 575 | except VariableDoesNotExist: |
| 576 | if ignore_failures: |
| 577 | arg_val = None |
| 578 | else: |
| 579 | if settings.TEMPLATE_STRING_IF_INVALID: |
| 580 | global invalid_var_format_string |
| 581 | if invalid_var_format_string is None: |
| 582 | invalid_var_format_string = '%s' in settings.TEMPLATE_STRING_IF_INVALID |
| 583 | if invalid_var_format_string: |
| 584 | arg_val= settings.TEMPLATE_STRING_IF_INVALID % self.var |
| 585 | else: |
| 586 | arg_val= settings.TEMPLATE_STRING_IF_INVALID |
| 587 | else: |
| 588 | arg_val = settings.TEMPLATE_STRING_IF_INVALID |
| 589 | arg_vals.append(arg_val) |