              except TemplateDoesNotExist as e:
                  tried.extend(e.tried)
  
      if template_name_list:
          raise TemplateDoesNotExist(', '.join(template_name_list), tried=tried)
      else:
          raise TemplateDoesNotExist("No template names provided")
  
  
  def render_to_string(template_name, context=None,
 
</s> remove                 tried.extend(e.tried)
 </s> add                 chain.append(e) </s> remove             raise TemplateDoesNotExist(template_name, tried=tried)
 </s> add             raise TemplateDoesNotExist(template_name, chain=chain) </s> remove             tried.extend(e.tried)
 </s> add             chain.append(e) </s> remove     raise TemplateDoesNotExist(template_name, tried=tried)
 </s> add     raise TemplateDoesNotExist(template_name, chain=chain) </s> remove                 raise TemplateDoesNotExist(exc.args)
 </s> add                 raise TemplateDoesNotExist(exc.args, backend=self)
        raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain)
              except TemplateDoesNotExist as e:
                  tried.extend(e.tried)
  
      if template_name_list:
        raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain)
      else:
          raise TemplateDoesNotExist("No template names provided")
  
  
  def render_to_string(template_name, context=None,
keep keep keep keep replace keep keep keep keep keep
 Fixed #24119, #24120 -- Formalized debug integration for template backends. 
django/template/loader.py