whitenoise
whitenoise copied to clipboard
Handle FileNotFoundError and emit warning on broken symlink in scantree()
Fixes #605.
Excellent work pre-commit! That is a indeed broken symlink... on purpose :)
Why would we turn this into a warning when it's a clear sign of something being misconfigured?
Wasn't sure about that either; silent exception handling would be just fine.
What I mean was, why do anything at all? A crash seems like a good thing. Broken symlinks seem like something that the user should track down and fix. Perhaps some static assets have gone missing.
I get that your server crashed but I don't think blindly ignoring the error is a good thing to do.
Closing per the above. I'm not convinced Whitenoise should handle this edge case.