Skip to content

don't attempt to compile directories #73

Description

@sqlalchemy-bot

Migrated issue, originally created by Anonymous

using pylons, if you attempt to render a non-existent template, the engine generates a TopLevelLookupException. however if you pass a filepath which refers to a directory, an IOError is raised instead. imho this is also a lookup error, not an IO error.

this should probably be checked against in line 69 of template.py.

an easy workaround is to catch the IOError -- perhaps the default in pylons (or at least the template controller) should try to catch that (making this a pylons bug and not a mako bug.) but it seems like an inconsistency.....

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions