Skip to content

Continue on search path if ENOTDIR returned when looking for templates#839

Closed
ishakir wants to merge 1 commit intopallets:masterfrom
ishakir:master
Closed

Continue on search path if ENOTDIR returned when looking for templates#839
ishakir wants to merge 1 commit intopallets:masterfrom
ishakir:master

Conversation

@ishakir
Copy link
Copy Markdown

@ishakir ishakir commented Apr 10, 2018

This became a problem in my build environment where we're running from python packaged into .jar files. The code looks for a path of the form run.jar/templates/my_template.html which returns errno.ENOTDIR breaking out of the whole search loop. This fixes that.

@ishakir
Copy link
Copy Markdown
Author

ishakir commented Apr 10, 2018

I believe the build failure to be related to existing issues

@ishakir
Copy link
Copy Markdown
Author

ishakir commented Apr 11, 2018

This is a duplicate of the following:

#822

which fixes #821 as well.

I have, however, gone through to check that there are no tests for open_if_exists

@davidism davidism closed this Apr 11, 2018
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants