New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't attempt to compile directories #73

Closed
sqlalchemy-bot opened this Issue Feb 15, 2008 · 2 comments

Comments

Projects
None yet
1 participant
@sqlalchemy-bot

sqlalchemy-bot commented Feb 15, 2008

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.....

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Mar 5, 2010

Michael Bayer (@zzzeek) wrote:

7c52614

@sqlalchemy-bot

This comment has been minimized.

sqlalchemy-bot commented Mar 5, 2010

Changes by Michael Bayer (@zzzeek):

  • set milestone to "0.3"
  • changed status to closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment