Ticket #8965: 8965_template_loader_error.diff

File 8965_template_loader_error.diff, 682 bytes (added by Daniel Pope <dan@…>, 16 years ago)

Patch to allow errors from safe_join to propagate

  • django/template/loaders/filesystem.py

     
    1010    if not template_dirs:
    1111        template_dirs = settings.TEMPLATE_DIRS
    1212    for template_dir in template_dirs:
    13         try:
    14             yield safe_join(template_dir, template_name)
    15         except ValueError:
    16             # The joined path was located outside of template_dir.
    17             pass
     13        yield safe_join(template_dir, template_name)
    1814
    1915def load_template_source(template_name, template_dirs=None):
    2016    tried = []
Back to Top