Skip to content
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
Closed

don't attempt to compile directories #73

sqlalchemy-bot opened this issue Feb 15, 2008 · 2 comments
Labels
bug Something isn't working lookup low priority
Milestone

Comments

@sqlalchemy-bot
Copy link

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
Copy link
Author

Michael Bayer (@zzzeek) wrote:

7c52614

@sqlalchemy-bot
Copy link
Author

Changes by Michael Bayer (@zzzeek):

  • set milestone to "0.3"
  • changed status to closed

@sqlalchemy-bot sqlalchemy-bot added bug Something isn't working low priority lookup labels Nov 26, 2018
@sqlalchemy-bot sqlalchemy-bot added this to the 0.3 milestone Nov 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lookup low priority
Projects
None yet
Development

No branches or pull requests

1 participant