Code

Ticket #12787: templatefix.patch

File templatefix.patch, 454 bytes (added by jkatzer, 4 years ago)

patch file to fix the bug

  • loader.py

    old new  
    120120        try: 
    121121            source, display_name = loader(name, dirs) 
    122122            return (source, make_origin(display_name, loader, name, dirs)) 
    123         except TemplateDoesNotExist: 
    124             pass 
     123        except TemplateDoesNotExist as inst: 
     124            TemplateDoesNotExist(inst) 
    125125    raise TemplateDoesNotExist(name) 
    126126 
    127127def find_template_source(name, dirs=None):