-
Notifications
You must be signed in to change notification settings - Fork 21
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
"OSError: [Errno 2] No such file or directory" when creating the store on disk #133
Comments
Looks like this error is raise when the parent dir (e.g. |
We will also get a different |
A quick fix for the first error would be to use the recursive |
The second error is a little more obvious, so I don't think we should catch that one. |
Test case done |
Also, use asserts, don't raise exceptions Touch #133
JSONStore now creates parent directories when needed to. It will still fail if it doesn't have permissions, but that error is quite clear. Touch #133
https://github.com/xray7224/PyPump/blob/master/pypump/store.py#L186
This line can raise an
OSError
with the rather cryptic message "[Errno 2] No such file or directory"The text was updated successfully, but these errors were encountered: