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

Should fail-fast with clear error if root path does not exist #166

Closed
javabrett opened this issue Dec 24, 2017 · 0 comments
Closed

Should fail-fast with clear error if root path does not exist #166

javabrett opened this issue Dec 24, 2017 · 0 comments

Comments

@javabrett
Copy link

Some behavioural changes can be observed when moving to Python 3.5+ when scandir becomes-available, as used in scantree.py.

os.walk() was forgiving of a non-existent root, but os.scandir() is not.

It is not clear whether Whitenoise should fail-fast if it is passed a root that does not exist, but that seems reasonable. Either way the behaviour should be consistent regardless of whether scandir is present or not.

/cc https://github.com/kennethreitz/httpbin/issues/403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant