                  return engine.get_template(template_name)
          except TemplateDoesNotExist as e:
              tried.extend(e.tried)
  
      raise TemplateDoesNotExist(template_name, tried=tried)
  
  
  def select_template(template_name_list, dirs=_dirs_undefined, using=None):
      """
      Loads and returns a template for one of the given names.
 
</s> remove             tried.extend(e.tried)
 </s> add             chain.append(e) </s> remove     tried = []
 </s> add     chain = [] </s> remove                 tried.extend(e.tried)
 </s> add                 chain.append(e) </s> remove         raise TemplateDoesNotExist(', '.join(template_name_list), tried=tried)
 </s> add         raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain) </s> remove             raise TemplateDoesNotExist(template_name, tried=tried)
 </s> add             raise TemplateDoesNotExist(template_name, chain=chain)
    raise TemplateDoesNotExist(template_name, chain=chain)
                  return engine.get_template(template_name)
          except TemplateDoesNotExist as e:
              tried.extend(e.tried)
  
    raise TemplateDoesNotExist(template_name, chain=chain)
  
  
  def select_template(template_name_list, dirs=_dirs_undefined, using=None):
      """
      Loads and returns a template for one of the given names.
keep keep keep keep replace keep keep keep keep keep
 Fixed #24119, #24120 -- Formalized debug integration for template backends. 
django/template/loader.py